diff --git a/assets/core/bet-position.meta b/assets/core/bet-table.meta similarity index 81% rename from assets/core/bet-position.meta rename to assets/core/bet-table.meta index f088ebf..66460ba 100644 --- a/assets/core/bet-position.meta +++ b/assets/core/bet-table.meta @@ -1,6 +1,6 @@ { "ver": "1.1.3", - "uuid": "0510b8c7-c63a-4b27-ab96-279aaaa1de5c", + "uuid": "63f861b2-04b5-4368-b335-55d72d707493", "importer": "folder", "isBundle": false, "bundleName": "", diff --git a/assets/core/bet-position/prepfabs.meta b/assets/core/bet-table/prefabs.meta similarity index 81% rename from assets/core/bet-position/prepfabs.meta rename to assets/core/bet-table/prefabs.meta index 7c0679c..a8a282b 100644 --- a/assets/core/bet-position/prepfabs.meta +++ b/assets/core/bet-table/prefabs.meta @@ -1,6 +1,6 @@ { "ver": "1.1.3", - "uuid": "0c865a3f-e64f-427c-94b2-13f1bf6e6557", + "uuid": "aaec7af0-d5fa-48f3-957b-0f5e338f3e7f", "importer": "folder", "isBundle": false, "bundleName": "", diff --git a/assets/core/bet-table/prefabs/bet-table.prefab b/assets/core/bet-table/prefabs/bet-table.prefab new file mode 100644 index 0000000..6e56e22 --- /dev/null +++ b/assets/core/bet-table/prefabs/bet-table.prefab @@ -0,0 +1,1165 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "", + "_objFlags": 0, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "asyncLoadAssets": false, + "readonly": false + }, + { + "__type__": "cc.Node", + "_name": "bet-table", + "_objFlags": 0, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 8 + } + ], + "_active": true, + "_components": [], + "_prefab": { + "__id__": 34 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 0, + "height": 0 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "component", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 3 + } + ], + "_active": true, + "_components": [], + "_prefab": { + "__id__": 33 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 0, + "height": 0 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "bet-position", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 4 + }, + { + "__id__": 15 + }, + { + "__id__": 28 + } + ], + "_active": true, + "_components": [ + { + "__id__": 11 + } + ], + "_prefab": { + "__id__": 32 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 200, + "height": 160 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + -249.953, + -216.67, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "button-bet", + "_objFlags": 0, + "_parent": { + "__id__": 3 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 5 + }, + { + "__id__": 12 + }, + { + "__id__": 13 + } + ], + "_prefab": { + "__id__": 14 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 200, + "height": 160 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "393a6DBmTRKW6rmtGHcNNqR", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 4 + }, + "_enabled": true, + "requestPlaceBet": { + "__id__": 6 + }, + "betPositionComponent": { + "__id__": 11 + }, + "_id": "" + }, + { + "__type__": "cd8ddTimZJIRa24LQOmB7Pn", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 7 + }, + "_enabled": true, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "request-place-bet", + "_objFlags": 0, + "_parent": { + "__id__": 8 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 6 + } + ], + "_prefab": { + "__id__": 10 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 0, + "height": 0 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "system", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 7 + } + ], + "_active": true, + "_components": [], + "_prefab": { + "__id__": 9 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 0, + "height": 0 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "3ePAbX5L1OvKtfRY+G7hYW", + "sync": false + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "4d02Eih2ZNPImWDv4S43Mx", + "sync": false + }, + { + "__type__": "0f1b39oNWBPJ7/oRTVuwfqf", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 3 + }, + "_enabled": true, + "index": 0, + "buttonBet": { + "__id__": 12 + }, + "_id": "" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 4 + }, + "_enabled": true, + "_normalMaterial": null, + "_grayMaterial": null, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 3, + "transition": 3, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_N$normalSprite": null, + "_N$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": { + "__id__": 4 + }, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 4 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91" + }, + "_type": 0, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 3 + }, + "asset": { + "__uuid__": "c7f580b1-683f-4242-8a3a-56a9c9192db1" + }, + "fileId": "acwlicPjRAmJ/B7vEuGYBd", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "detail", + "_objFlags": 0, + "_parent": { + "__id__": 3 + }, + "_children": [ + { + "__id__": 16 + }, + { + "__id__": 19 + }, + { + "__id__": 23 + } + ], + "_active": true, + "_components": [], + "_prefab": { + "__id__": 27 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 200, + "height": 130 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "bet", + "_objFlags": 0, + "_parent": { + "__id__": 15 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 17 + } + ], + "_prefab": { + "__id__": 18 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 113, + "g": 204, + "b": 240, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 200, + "height": 90 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 20, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 16 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91" + }, + "_type": 0, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 3 + }, + "asset": { + "__uuid__": "c7f580b1-683f-4242-8a3a-56a9c9192db1" + }, + "fileId": "472eY7oHlGl4J7NLxwJL49", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "label-odds", + "_objFlags": 0, + "_parent": { + "__id__": 15 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 20 + }, + { + "__id__": 21 + } + ], + "_prefab": { + "__id__": 22 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 186, + "g": 128, + "b": 146, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 83.4, + "height": 31.5 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + -56.609, + -45, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "3674eAiaAdI0rWSIhPOyLjC", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 19 + }, + "_enabled": true, + "labelOdds": { + "__id__": 21 + }, + "_id": "" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 19 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_string": "1 : 3.92", + "_N$string": "1 : 3.92", + "_fontSize": 25, + "_lineHeight": 25, + "_enableWrapText": true, + "_N$file": null, + "_isSystemFontUsed": false, + "_spacingX": 0, + "_batchAsBitmap": false, + "_styleFlags": 0, + "_underlineHeight": 0, + "_N$horizontalAlign": 1, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 0, + "_N$cacheMode": 0, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 3 + }, + "asset": { + "__uuid__": "c7f580b1-683f-4242-8a3a-56a9c9192db1" + }, + "fileId": "6fMweRWFBDKor5Zdl9outB", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "label-money", + "_objFlags": 0, + "_parent": { + "__id__": 15 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 24 + }, + { + "__id__": 25 + } + ], + "_prefab": { + "__id__": 26 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 186, + "g": 128, + "b": 146, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 83.4, + "height": 31.5 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 55.541, + -45, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "0f5c3fQEvhFkoUhgj/rDelk", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 23 + }, + "_enabled": true, + "labelMoney": { + "__id__": 25 + }, + "_id": "" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 23 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_string": "1 : 3.92", + "_N$string": "1 : 3.92", + "_fontSize": 25, + "_lineHeight": 25, + "_enableWrapText": true, + "_N$file": null, + "_isSystemFontUsed": false, + "_spacingX": 0, + "_batchAsBitmap": false, + "_styleFlags": 0, + "_underlineHeight": 0, + "_N$horizontalAlign": 1, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 0, + "_N$cacheMode": 0, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 3 + }, + "asset": { + "__uuid__": "c7f580b1-683f-4242-8a3a-56a9c9192db1" + }, + "fileId": "4fVugRu51MMYKiUTc9hxyX", + "sync": false + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 3 + }, + "asset": { + "__uuid__": "c7f580b1-683f-4242-8a3a-56a9c9192db1" + }, + "fileId": "2b9K5TNhNP678dvVScYWp8", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "chip-handler", + "_objFlags": 0, + "_parent": { + "__id__": 3 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 29 + }, + { + "__id__": 30 + } + ], + "_prefab": { + "__id__": 31 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 0, + "height": 0 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + -1.457, + 17.204, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "a2ae94dyIFJwqWb6gKNDdcK", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 28 + }, + "_enabled": true, + "chipPrefab": { + "__uuid__": "bf77bfc7-abcc-4d29-8ab3-05ec46df58eb" + }, + "animChip": { + "__id__": 30 + }, + "_id": "" + }, + { + "__type__": "feac7ZD+8ZN64Md38yUI14H", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 28 + }, + "_enabled": true, + "winNode": null, + "collectNode": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 28 + }, + "asset": { + "__uuid__": "880f2aa7-1582-4df0-9937-53afb2f7e631" + }, + "fileId": "34dJVKUZVC9qo9Obn0a/Dr", + "sync": false + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 3 + }, + "asset": { + "__uuid__": "c7f580b1-683f-4242-8a3a-56a9c9192db1" + }, + "fileId": "deW6DjHYNG1p0hHTTeRbwz", + "sync": false + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "0eU54rpD5JLrLWmpIKXRa4", + "sync": false + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "", + "sync": false + } +] \ No newline at end of file diff --git a/assets/core/bet-table/prefabs/bet-table.prefab.meta b/assets/core/bet-table/prefabs/bet-table.prefab.meta new file mode 100644 index 0000000..d4d716f --- /dev/null +++ b/assets/core/bet-table/prefabs/bet-table.prefab.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.3.2", + "uuid": "295e0982-6e94-480e-9c48-f81914fb071d", + "importer": "prefab", + "optimizationPolicy": "AUTO", + "asyncLoadAssets": false, + "readonly": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/core/bet-position/scripts.meta b/assets/core/bet-table/scripts.meta similarity index 81% rename from assets/core/bet-position/scripts.meta rename to assets/core/bet-table/scripts.meta index c4659e9..34fe221 100644 --- a/assets/core/bet-position/scripts.meta +++ b/assets/core/bet-table/scripts.meta @@ -1,6 +1,6 @@ { "ver": "1.1.3", - "uuid": "452efd13-e4a0-49d9-934c-8e8abd27f6a6", + "uuid": "769bcb96-d316-4338-af26-c675014053c2", "importer": "folder", "isBundle": false, "bundleName": "", diff --git a/assets/core/bet-position/scripts/component.meta b/assets/core/bet-table/scripts/component.meta similarity index 100% rename from assets/core/bet-position/scripts/component.meta rename to assets/core/bet-table/scripts/component.meta diff --git a/assets/core/bet-table/scripts/system.meta b/assets/core/bet-table/scripts/system.meta new file mode 100644 index 0000000..7022413 --- /dev/null +++ b/assets/core/bet-table/scripts/system.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.3", + "uuid": "717557b2-f4f0-42eb-8462-c36aebbd38d9", + "importer": "folder", + "isBundle": false, + "bundleName": "", + "priority": 1, + "compressionType": {}, + "optimizeHotUpdate": {}, + "inlineSpriteFrames": {}, + "isRemoteBundle": {}, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/core/bet-table/scripts/system/request-confirm-bet.ts b/assets/core/bet-table/scripts/system/request-confirm-bet.ts new file mode 100644 index 0000000..7fe6d5c --- /dev/null +++ b/assets/core/bet-table/scripts/system/request-confirm-bet.ts @@ -0,0 +1,18 @@ +import getDecorators from "inversify-inject-decorators"; +import { container, CONTROLLER, GameController } from "../../../plugins/core"; + +const { ccclass, property } = cc._decorator; +const { lazyInject } = getDecorators(container, false); + + +@ccclass +export class RequestConfirmBet extends cc.Component +{ + @lazyInject(CONTROLLER.Game) + private gameController: GameController; + + public request(): void + { + this.gameController.confirmBet(); + } +} diff --git a/assets/core/bet-table/scripts/system/request-confirm-bet.ts.meta b/assets/core/bet-table/scripts/system/request-confirm-bet.ts.meta new file mode 100644 index 0000000..6e8de8e --- /dev/null +++ b/assets/core/bet-table/scripts/system/request-confirm-bet.ts.meta @@ -0,0 +1,10 @@ +{ + "ver": "1.1.0", + "uuid": "cdd78638-716b-4a6c-a873-9ab3468e635c", + "importer": "typescript", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/core/bet-table/scripts/system/request-place-bet.ts b/assets/core/bet-table/scripts/system/request-place-bet.ts new file mode 100644 index 0000000..88cd77a --- /dev/null +++ b/assets/core/bet-table/scripts/system/request-place-bet.ts @@ -0,0 +1,18 @@ +import getDecorators from "inversify-inject-decorators"; +import { BetController, container, CONTROLLER } from "../../../plugins/core"; + +const { ccclass, property } = cc._decorator; +const { lazyInject } = getDecorators(container, false); + + +@ccclass +export class RequestPlaceBet extends cc.Component +{ + @lazyInject(CONTROLLER.Bet) + private betController: BetController; + + public request(betPositionIndex: number): void + { + this.betController.placeBet(betPositionIndex); + } +} diff --git a/assets/core/bet-table/scripts/system/request-place-bet.ts.meta b/assets/core/bet-table/scripts/system/request-place-bet.ts.meta new file mode 100644 index 0000000..289f12b --- /dev/null +++ b/assets/core/bet-table/scripts/system/request-place-bet.ts.meta @@ -0,0 +1,10 @@ +{ + "ver": "1.1.0", + "uuid": "cd8dd4e2-9992-4845-adb8-2d03a607b3e7", + "importer": "typescript", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/core/bet-table/scripts/system/update-chip-on-view-bet-change.ts b/assets/core/bet-table/scripts/system/update-chip-on-view-bet-change.ts new file mode 100644 index 0000000..5a01244 --- /dev/null +++ b/assets/core/bet-table/scripts/system/update-chip-on-view-bet-change.ts @@ -0,0 +1,33 @@ +import getDecorators from "inversify-inject-decorators"; +import { ChipHandler } from "../../../chip-handler/scripts/chip-handler"; +import { BetModel, container, GAME_VIEW, MODEL } from "../../../plugins/core"; + +const { ccclass, property } = cc._decorator; +const { lazyInject } = getDecorators(container, false); + + +@ccclass +export class UpdateChipOnViewBetChange extends cc.Component implements Core.View.ComponentView +{ + @lazyInject(GAME_VIEW.Bet) + private gameViewBet: Core.View.GameView; + @lazyInject(MODEL.Bet) + private betModel: BetModel; + + @property(ChipHandler) + private listChipHandler: ChipHandler[] = []; + + protected onLoad(): void + { + this.gameViewBet.addComponent(this); + this.render(); + } + + public render(): void + { + for (let index = 0; index < this.listChipHandler.length; index++) + { + this.listChipHandler[index].updateChipBetValue(this.betModel.listBetPoint[index]); + } + } +} diff --git a/assets/core/bet-table/scripts/system/update-chip-on-view-bet-change.ts.meta b/assets/core/bet-table/scripts/system/update-chip-on-view-bet-change.ts.meta new file mode 100644 index 0000000..2510c9d --- /dev/null +++ b/assets/core/bet-table/scripts/system/update-chip-on-view-bet-change.ts.meta @@ -0,0 +1,10 @@ +{ + "ver": "1.1.0", + "uuid": "a611c97d-b2db-4ee5-b5ce-4b9e8fbd3cb1", + "importer": "typescript", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/core/bet-table/scripts/system/update-chip-on-view-lounge-change.ts b/assets/core/bet-table/scripts/system/update-chip-on-view-lounge-change.ts new file mode 100644 index 0000000..2a913dd --- /dev/null +++ b/assets/core/bet-table/scripts/system/update-chip-on-view-lounge-change.ts @@ -0,0 +1,31 @@ +import getDecorators from "inversify-inject-decorators"; +import { ChipHandler } from "../../../chip-handler/scripts/chip-handler"; +import { container, GAME_VIEW } from "../../../plugins/core"; + +const { ccclass, property } = cc._decorator; +const { lazyInject } = getDecorators(container, false); + + +@ccclass +export class UpdateChipOnViewLoungeChange extends cc.Component implements Core.View.ComponentView +{ + @lazyInject(GAME_VIEW.Lounge) + private gameViewLounge: Core.View.GameView; + + @property(ChipHandler) + private listChipHandler: ChipHandler[] = []; + + protected onLoad(): void + { + this.gameViewLounge.addComponent(this); + this.render(); + } + + public render(): void + { + this.listChipHandler.forEach((chipHandler) => + { + chipHandler.hideAll(); + }); + } +} diff --git a/assets/core/bet-table/scripts/system/update-chip-on-view-lounge-change.ts.meta b/assets/core/bet-table/scripts/system/update-chip-on-view-lounge-change.ts.meta new file mode 100644 index 0000000..bd97aa1 --- /dev/null +++ b/assets/core/bet-table/scripts/system/update-chip-on-view-lounge-change.ts.meta @@ -0,0 +1,10 @@ +{ + "ver": "1.1.0", + "uuid": "b18964f9-9cfe-490b-ae68-df586c9a4d0a", + "importer": "typescript", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/core/bet-table/scripts/system/update-money-on-view-bet-change.ts b/assets/core/bet-table/scripts/system/update-money-on-view-bet-change.ts new file mode 100644 index 0000000..d9ce581 --- /dev/null +++ b/assets/core/bet-table/scripts/system/update-money-on-view-bet-change.ts @@ -0,0 +1,33 @@ +import getDecorators from "inversify-inject-decorators"; +import { MoneyLabelDisplay } from "../../../bet-position/scripts/component/money-label-display"; +import { BetModel, container, GAME_VIEW, MODEL } from "../../../plugins/core"; + +const { ccclass, property } = cc._decorator; +const { lazyInject } = getDecorators(container, false); + + +@ccclass +export class UpdateMoneyOnViewBetChange extends cc.Component implements Core.View.ComponentView +{ + @lazyInject(GAME_VIEW.Bet) + private gameViewBet: Core.View.GameView; + @lazyInject(MODEL.Bet) + private betModel: BetModel; + + @property(MoneyLabelDisplay) + private listMoneyLabelDisplay: MoneyLabelDisplay[] = []; + + protected onLoad(): void + { + this.gameViewBet.addComponent(this); + this.render(); + } + + public render(): void + { + for (let index = 0; index < this.listMoneyLabelDisplay.length; index++) + { + this.listMoneyLabelDisplay[index].setValue(this.betModel.listBetPoint[index]); + } + } +} diff --git a/assets/core/bet-table/scripts/system/update-money-on-view-bet-change.ts.meta b/assets/core/bet-table/scripts/system/update-money-on-view-bet-change.ts.meta new file mode 100644 index 0000000..fe5e7da --- /dev/null +++ b/assets/core/bet-table/scripts/system/update-money-on-view-bet-change.ts.meta @@ -0,0 +1,10 @@ +{ + "ver": "1.1.0", + "uuid": "007ad167-4325-4fd2-bdca-2e9790e423b6", + "importer": "typescript", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/core/bet-table/scripts/system/update-odds-on-view-odds-change.ts b/assets/core/bet-table/scripts/system/update-odds-on-view-odds-change.ts new file mode 100644 index 0000000..c656678 --- /dev/null +++ b/assets/core/bet-table/scripts/system/update-odds-on-view-odds-change.ts @@ -0,0 +1,33 @@ +import getDecorators from "inversify-inject-decorators"; +import OddsLabelDisplay from "../../../bet-position/scripts/component/odds-label-display"; +import { container, GAME_VIEW, ListOddsModel, MODEL } from "../../../plugins/core"; + +const { ccclass, property } = cc._decorator; +const { lazyInject } = getDecorators(container, false); + + +@ccclass +export class UpdateOddsOnDataChange extends cc.Component implements Core.View.ComponentView +{ + @lazyInject(GAME_VIEW.Odds) + private gameViewOdds: Core.View.GameView; + @lazyInject(MODEL.ListOdds) + private listOddsModel: ListOddsModel; + + @property(OddsLabelDisplay) + private listOddsLabelDisplay: OddsLabelDisplay[] = []; + + protected onLoad(): void + { + this.gameViewOdds.addComponent(this); + this.render(); + } + + public render(): void + { + for (let index = 0; index < this.listOddsLabelDisplay.length; index++) + { + this.listOddsLabelDisplay[index].setValue(this.listOddsModel[index]); + } + } +} diff --git a/assets/core/bet-table/scripts/system/update-odds-on-view-odds-change.ts.meta b/assets/core/bet-table/scripts/system/update-odds-on-view-odds-change.ts.meta new file mode 100644 index 0000000..38c6c6e --- /dev/null +++ b/assets/core/bet-table/scripts/system/update-odds-on-view-odds-change.ts.meta @@ -0,0 +1,10 @@ +{ + "ver": "1.1.0", + "uuid": "be85c1a5-fac1-40bc-90b1-376367388440", + "importer": "typescript", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file