[Init]Init commit

master
kenyeh 3 years ago
parent f670fe1a11
commit 10690ac902

@ -0,0 +1,12 @@
{
"ver": "1.1.2",
"uuid": "25019915-eafb-4116-8ab1-89d20874b7b5",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

@ -0,0 +1,453 @@
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "detailPanel",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
},
{
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 11
}
],
"_prefab": {
"__id__": 12
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 114.55,
"height": 30
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-120,
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": "keyLabel",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 5,
"g": 0,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 48.94,
"height": 25.2
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"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.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize": 20,
"_lineHeight": 20,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_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__": 1
},
"asset": {
"__uuid__": "722ae8b8-abb7-457a-b4f1-009b95741acb"
},
"fileId": "b1GbfDGn5CGpjJcsU7dyqd",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "colon",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": {
"__id__": 7
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 5,
"g": 0,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 16.67,
"height": 25.2
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
57.275,
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.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": " : ",
"_N$string": " : ",
"_fontSize": 20,
"_lineHeight": 20,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_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__": 1
},
"asset": {
"__uuid__": "722ae8b8-abb7-457a-b4f1-009b95741acb"
},
"fileId": "c2d1256tdF37epY2//ZgO7",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "valueLabel",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
}
],
"_prefab": {
"__id__": 10
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 101,
"g": 69,
"b": 22,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 48.94,
"height": 25.2
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
65.61,
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.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize": 20,
"_lineHeight": 20,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_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__": 1
},
"asset": {
"__uuid__": "722ae8b8-abb7-457a-b4f1-009b95741acb"
},
"fileId": "7bGOdOd4ZJSa26J9O6lkcE",
"sync": false
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 114.55,
"height": 30
},
"_resize": 1,
"_N$layoutType": 1,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "722ae8b8-abb7-457a-b4f1-009b95741acb"
},
"fileId": "",
"sync": false
}
]

@ -0,0 +1,8 @@
{
"ver": "1.2.9",
"uuid": "722ae8b8-abb7-457a-b4f1-009b95741acb",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,8 @@
{
"ver": "1.2.9",
"uuid": "aeb9c981-3cf6-41a9-9ba1-75619b5030c8",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}

@ -0,0 +1,452 @@
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "singleDrone",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": true,
"_components": [
{
"__id__": 9
},
{
"__id__": 11
}
],
"_prefab": {
"__id__": 12
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 256,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 1
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-10,
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": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
}
],
"_active": true,
"_components": [
{
"__id__": 6
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 8
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 256,
"height": 40
},
"_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.Node",
"_name": "droneName",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
}
],
"_prefab": {
"__id__": 5
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 256,
"height": 40
},
"_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.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "無人機A",
"_N$string": "無人機A",
"_fontSize": 20,
"_lineHeight": 20,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1,
"_N$cacheMode": 1,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "45b08efb-42ac-4dc9-ab60-69528d4dca36"
},
"fileId": "842DSxoElKf4TiLPH0IRpm",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"alignMode": 0,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 40,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "45b08efb-42ac-4dc9-ab60-69528d4dca36"
},
"fileId": "04y6Brf9VJipC2JamDIevZ",
"sync": false
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 10
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 2,
"transition": 2,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 230,
"g": 230,
"b": 230,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"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": 120,
"g": 120,
"b": 120,
"a": 200
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 2
},
"_id": ""
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 1
},
"component": "",
"_componentId": "f5fa2wQFPpNv5Zo6naGafYe",
"handler": "onClick",
"customEventData": ""
},
{
"__type__": "f5fa2wQFPpNv5Zo6naGafYe",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"nameLabel": {
"__id__": 4
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "45b08efb-42ac-4dc9-ab60-69528d4dca36"
},
"fileId": "",
"sync": false
}
]

@ -0,0 +1,8 @@
{
"ver": "1.2.9",
"uuid": "45b08efb-42ac-4dc9-ab60-69528d4dca36",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,8 @@
{
"ver": "1.2.9",
"uuid": "362979ed-d4de-47b7-bcbb-2dfd95e1eb55",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}

@ -0,0 +1,12 @@
{
"ver": "1.1.2",
"uuid": "bf7e6a4d-f9ec-4f4e-b8c0-e1b64e8d799d",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

@ -0,0 +1,36 @@
{
"ver": "2.3.5",
"uuid": "12f3685e-ea2c-45ad-a74a-44f610b10ec8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 40,
"height": 40,
"platformSettings": {},
"subMetas": {
"select-language-left-selected": {
"ver": "1.0.4",
"uuid": "6d887398-1c55-4191-856e-58ce3e16da51",
"rawTextureUuid": "12f3685e-ea2c-45ad-a74a-44f610b10ec8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 40,
"height": 40,
"rawWidth": 40,
"rawHeight": 40,
"borderTop": 8,
"borderBottom": 8,
"borderLeft": 8,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

@ -0,0 +1,36 @@
{
"ver": "2.3.5",
"uuid": "ca17c083-d2c1-46d8-aa91-35bbf3d1ff13",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 40,
"height": 40,
"platformSettings": {},
"subMetas": {
"select-language-left-unselect": {
"ver": "1.0.4",
"uuid": "2668a6c5-3116-4ea8-a9b9-3a2af5a83a69",
"rawTextureUuid": "ca17c083-d2c1-46d8-aa91-35bbf3d1ff13",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 40,
"height": 40,
"rawWidth": 40,
"rawHeight": 40,
"borderTop": 8,
"borderBottom": 8,
"borderLeft": 8,
"borderRight": 3,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 B

@ -0,0 +1,36 @@
{
"ver": "2.3.5",
"uuid": "862bef41-84db-4bb8-814b-9ada05bcf600",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 16,
"height": 16,
"platformSettings": {},
"subMetas": {
"select-language-middle-unselect": {
"ver": "1.0.4",
"uuid": "406e0f45-1db5-46c3-9a7b-d1f74902e52b",
"rawTextureUuid": "862bef41-84db-4bb8-814b-9ada05bcf600",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 16,
"height": 16,
"rawWidth": 16,
"rawHeight": 16,
"borderTop": 3,
"borderBottom": 3,
"borderLeft": 2,
"borderRight": 2,
"subMetas": {}
}
}
}

@ -0,0 +1,12 @@
{
"ver": "1.1.2",
"uuid": "cad9c4ac-0cf5-45a8-acdc-2f04289139e7",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,7 @@
{
"ver": "1.2.9",
"uuid": "bba0dc1c-3528-4871-bd4c-52ed7d74c5fc",
"asyncLoadAssets": false,
"autoReleaseAssets": false,
"subMetas": {}
}

@ -0,0 +1,12 @@
{
"ver": "1.1.2",
"uuid": "b0d74c6c-dfdf-4dd5-a283-64f66f51264d",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

@ -0,0 +1,12 @@
{
"ver": "1.1.2",
"uuid": "44443e53-f038-4bec-8259-5066ddcd16ba",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

@ -0,0 +1,12 @@
{
"ver": "1.1.2",
"uuid": "8e87240d-d769-40a6-9083-aa9ddfa1073d",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

@ -0,0 +1,12 @@
{
"ver": "1.1.2",
"uuid": "a59cdffd-7c45-4b05-8094-dd13ba8fc7a4",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

@ -0,0 +1,20 @@
import { IDerivation } from "../internal";
export declare function createAction(actionName: string, fn: Function, autoAction?: boolean, ref?: Object): Function;
export declare function executeAction(actionName: string, canRunAsDerivation: boolean, fn: Function, scope?: any, args?: IArguments): any;
export interface IActionRunInfo {
prevDerivation_: IDerivation | null;
prevAllowStateChanges_: boolean;
prevAllowStateReads_: boolean;
notifySpy_: boolean;
startTime_: number;
error_?: any;
parentActionId_: number;
actionId_: number;
runAsAction_?: boolean;
}
export declare function _startAction(actionName: string, canRunAsDerivation: boolean, // true for autoAction
scope: any, args?: IArguments): IActionRunInfo;
export declare function _endAction(runInfo: IActionRunInfo): void;
export declare function allowStateChanges<T>(allowStateChanges: boolean, func: () => T): T;
export declare function allowStateChangesStart(allowStateChanges: boolean): boolean;
export declare function allowStateChangesEnd(prev: boolean): void;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "1f7b61f1-19cd-47f0-a89f-15fa99caa5be",
"subMetas": {}
}

@ -0,0 +1,36 @@
import { IDerivationState_, IObservable, IDerivation, Lambda } from "../internal";
export declare const $mobx: unique symbol;
export interface IAtom extends IObservable {
reportObserved(): any;
reportChanged(): any;
}
export declare class Atom implements IAtom {
name_: string;
isPendingUnobservation_: boolean;
isBeingObserved_: boolean;
observers_: Set<IDerivation>;
diffValue_: number;
lastAccessedBy_: number;
lowestObserverState_: IDerivationState_;
/**
* Create a new atom. For debugging purposes it is recommended to give it a name.
* The onBecomeObserved and onBecomeUnobserved callbacks can be used for resource management.
*/
constructor(name_?: string);
onBOL: Set<Lambda> | undefined;
onBUOL: Set<Lambda> | undefined;
onBO(): void;
onBUO(): void;
/**
* Invoke this method to notify mobx that your atom has been used somehow.
* Returns true if there is currently a reactive context.
*/
reportObserved(): boolean;
/**
* Invoke this method _after_ this method has changed to signal mobx that all its observers should invalidate.
*/
reportChanged(): void;
toString(): string;
}
export declare const isAtom: (x: any) => x is Atom;
export declare function createAtom(name: string, onBecomeObservedHandler?: () => void, onBecomeUnobservedHandler?: () => void): IAtom;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "6c21e329-0ffd-43d8-9ac8-fe6a7c7b5c2f",
"subMetas": {}
}

@ -0,0 +1,100 @@
import { CaughtException, IDerivation, IDerivationState_, IEqualsComparer, IObservable, Lambda, TraceMode } from "../internal";
export interface IComputedValue<T> {
get(): T;
set(value: T): void;
observe_(listener: (change: IComputedDidChange<T>) => void, fireImmediately?: boolean): Lambda;
}
export interface IComputedValueOptions<T> {
get?: () => T;
set?: (value: T) => void;
name?: string;
equals?: IEqualsComparer<T>;
context?: any;
requiresReaction?: boolean;
keepAlive?: boolean;
}
export declare type IComputedDidChange<T = any> = {
type: "update";
observableKind: "computed";
object: unknown;
debugObjectName: string;
newValue: T;
oldValue: T | undefined;
};
/**
* A node in the state dependency root that observes other nodes, and can be observed itself.
*
* ComputedValue will remember the result of the computation for the duration of the batch, or
* while being observed.
*
* During this time it will recompute only when one of its direct dependencies changed,
* but only when it is being accessed with `ComputedValue.get()`.
*
* Implementation description:
* 1. First time it's being accessed it will compute and remember result
* give back remembered result until 2. happens
* 2. First time any deep dependency change, propagate POSSIBLY_STALE to all observers, wait for 3.
* 3. When it's being accessed, recompute if any shallow dependency changed.
* if result changed: propagate STALE to all observers, that were POSSIBLY_STALE from the last step.
* go to step 2. either way
*
* If at any point it's outside batch and it isn't observed: reset everything and go to 1.
*/
export declare class ComputedValue<T> implements IObservable, IComputedValue<T>, IDerivation {
dependenciesState_: IDerivationState_;
observing_: IObservable[];
newObserving_: null;
isBeingObserved_: boolean;
isPendingUnobservation_: boolean;
observers_: Set<IDerivation>;
diffValue_: number;
runId_: number;
lastAccessedBy_: number;
lowestObserverState_: IDerivationState_;
unboundDepsCount_: number;
protected value_: T | undefined | CaughtException;
name_: string;
triggeredBy_?: string;
isComputing_: boolean;
isRunningSetter_: boolean;
derivation: () => T;
setter_?: (value: T) => void;
isTracing_: TraceMode;
scope_: Object | undefined;
private equals_;
private requiresReaction_;
keepAlive_: boolean;
/**
* Create a new computed value based on a function expression.
*
* The `name` property is for debug purposes only.
*
* The `equals` property specifies the comparer function to use to determine if a newly produced
* value differs from the previous value. Two comparers are provided in the library; `defaultComparer`
* compares based on identity comparison (===), and `structuralComparer` deeply compares the structure.
* Structural comparison can be convenient if you always produce a new aggregated object and
* don't want to notify observers if it is structurally the same.
* This is useful for working with vectors, mouse coordinates etc.
*/
constructor(options: IComputedValueOptions<T>);
onBecomeStale_(): void;
onBOL: Set<Lambda> | undefined;
onBUOL: Set<Lambda> | undefined;
onBO(): void;
onBUO(): void;
/**
* Returns the current value of this computed value.
* Will evaluate its computation first if needed.
*/
get(): T;
set(value: T): void;
trackAndCompute(): boolean;
computeValue_(track: boolean): T | CaughtException;
suspend_(): void;
observe_(listener: (change: IComputedDidChange<T>) => void, fireImmediately?: boolean): Lambda;
warnAboutUntrackedRead_(): void;
toString(): string;
valueOf(): T;
[Symbol.toPrimitive](): T;
}
export declare const isComputedValue: (x: any) => x is ComputedValue<unknown>;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "bc86d0fa-d8e2-4505-a93c-b03e92666c14",
"subMetas": {}
}

@ -0,0 +1,73 @@
import { IAtom, IDepTreeNode, IObservable } from "../internal";
export declare enum IDerivationState_ {
NOT_TRACKING_ = -1,
UP_TO_DATE_ = 0,
POSSIBLY_STALE_ = 1,
STALE_ = 2
}
export declare enum TraceMode {
NONE = 0,
LOG = 1,
BREAK = 2
}
/**
* A derivation is everything that can be derived from the state (all the atoms) in a pure manner.
* See https://medium.com/@mweststrate/becoming-fully-reactive-an-in-depth-explanation-of-mobservable-55995262a254#.xvbh6qd74
*/
export interface IDerivation extends IDepTreeNode {
observing_: IObservable[];
newObserving_: null | IObservable[];
dependenciesState_: IDerivationState_;
/**
* Id of the current run of a derivation. Each time the derivation is tracked
* this number is increased by one. This number is globally unique
*/
runId_: number;
/**
* amount of dependencies used by the derivation in this run, which has not been bound yet.
*/
unboundDepsCount_: number;
onBecomeStale_(): void;
isTracing_: TraceMode;
/**
* warn if the derivation has no dependencies after creation/update
*/
requiresObservable_?: boolean;
}
export declare class CaughtException {
cause: any;
constructor(cause: any);
}
export declare function isCaughtException(e: any): e is CaughtException;
/**
* Finds out whether any dependency of the derivation has actually changed.
* If dependenciesState is 1 then it will recalculate dependencies,
* if any dependency changed it will propagate it by changing dependenciesState to 2.
*
* By iterating over the dependencies in the same order that they were reported and
* stopping on the first change, all the recalculations are only called for ComputedValues
* that will be tracked by derivation. That is because we assume that if the first x
* dependencies of the derivation doesn't change then the derivation should run the same way
* up until accessing x-th dependency.
*/
export declare function shouldCompute(derivation: IDerivation): boolean;
export declare function isComputingDerivation(): boolean;
export declare function checkIfStateModificationsAreAllowed(atom: IAtom): void;
export declare function checkIfStateReadsAreAllowed(observable: IObservable): void;
/**
* Executes the provided function `f` and tracks which observables are being accessed.
* The tracking information is stored on the `derivation` object and the derivation is registered
* as observer of any of the accessed observables.
*/
export declare function trackDerivedFunction<T>(derivation: IDerivation, f: () => T, context: any): any;
export declare function clearObserving(derivation: IDerivation): void;
export declare function untracked<T>(action: () => T): T;
export declare function untrackedStart(): IDerivation | null;
export declare function untrackedEnd(prev: IDerivation | null): void;
export declare function allowStateReadsStart(allowStateReads: boolean): boolean;
export declare function allowStateReadsEnd(prev: boolean): void;
/**
* needed to keep `lowestObserverState` correct. when changing from (2 or 1) to 0
*
*/
export declare function changeDependenciesStateTo0(derivation: IDerivation): void;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "62978fe5-ca25-43a9-b3d4-3e5d55fdf89d",
"subMetas": {}
}

@ -0,0 +1,112 @@
import { IDerivation, IObservable, Reaction } from "../internal";
import { ComputedValue } from "./computedvalue";
export declare type IUNCHANGED = {};
export declare class MobXGlobals {
/**
* MobXGlobals version.
* MobX compatiblity with other versions loaded in memory as long as this version matches.
* It indicates that the global state still stores similar information
*
* N.B: this version is unrelated to the package version of MobX, and is only the version of the
* internal state storage of MobX, and can be the same across many different package versions
*/
version: number;
/**
* globally unique token to signal unchanged
*/
UNCHANGED: IUNCHANGED;
/**
* Currently running derivation
*/
trackingDerivation: IDerivation | null;
/**
* Currently running reaction. This determines if we currently have a reactive context.
* (Tracking derivation is also set for temporal tracking of computed values inside actions,
* but trackingReaction can only be set by a form of Reaction)
*/
trackingContext: Reaction | ComputedValue<any> | null;
/**
* Each time a derivation is tracked, it is assigned a unique run-id
*/
runId: number;
/**
* 'guid' for general purpose. Will be persisted amongst resets.
*/
mobxGuid: number;
/**
* Are we in a batch block? (and how many of them)
*/
inBatch: number;
/**
* Observables that don't have observers anymore, and are about to be
* suspended, unless somebody else accesses it in the same batch
*
* @type {IObservable[]}
*/
pendingUnobservations: IObservable[];
/**
* List of scheduled, not yet executed, reactions.
*/
pendingReactions: Reaction[];
/**
* Are we currently processing reactions?
*/
isRunningReactions: boolean;
/**
* Is it allowed to change observables at this point?
* In general, MobX doesn't allow that when running computations and React.render.
* To ensure that those functions stay pure.
*/
allowStateChanges: boolean;
/**
* Is it allowed to read observables at this point?
* Used to hold the state needed for `observableRequiresReaction`
*/
allowStateReads: boolean;
/**
* If strict mode is enabled, state changes are by default not allowed
*/
enforceActions: boolean | "always";
/**
* Spy callbacks
*/
spyListeners: {
(change: any): void;
}[];
/**
* Globally attached error handlers that react specifically to errors in reactions
*/
globalReactionErrorHandlers: ((error: any, derivation: IDerivation) => void)[];
/**
* Warn if computed values are accessed outside a reactive context
*/
computedRequiresReaction: boolean;
/**
* (Experimental)
* Warn if you try to create to derivation / reactive context without accessing any observable.
*/
reactionRequiresObservable: boolean;
/**
* (Experimental)
* Warn if observables are accessed outside a reactive context
*/
observableRequiresReaction: boolean;
disableErrorBoundaries: boolean;
suppressReactionErrors: boolean;
useProxies: boolean;
verifyProxies: boolean;
/**
* False forces all object's descriptors to
* writable: true
* configurable: true
*/
safeDescriptors: boolean;
}
export declare let globalState: MobXGlobals;
export declare function isolateGlobalState(): void;
export declare function getGlobalState(): any;
/**
* For testing purposes only; this will break the internal state of existing observables,
* but can be used to get back at a stable state after throwing errors
*/
export declare function resetGlobalState(): void;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "c635e75d-4b5d-40c0-b877-ed547746a404",
"subMetas": {}
}

@ -0,0 +1,45 @@
import { Lambda, IDerivation, IDerivationState_ } from "../internal";
export interface IDepTreeNode {
name_: string;
observing_?: IObservable[];
}
export interface IObservable extends IDepTreeNode {
diffValue_: number;
/**
* Id of the derivation *run* that last accessed this observable.
* If this id equals the *run* id of the current derivation,
* the dependency is already established
*/
lastAccessedBy_: number;
isBeingObserved_: boolean;
lowestObserverState_: IDerivationState_;
isPendingUnobservation_: boolean;
observers_: Set<IDerivation>;
onBUO(): void;
onBO(): void;
onBUOL: Set<Lambda> | undefined;
onBOL: Set<Lambda> | undefined;
}
export declare function hasObservers(observable: IObservable): boolean;
export declare function getObservers(observable: IObservable): Set<IDerivation>;
export declare function addObserver(observable: IObservable, node: IDerivation): void;
export declare function removeObserver(observable: IObservable, node: IDerivation): void;
export declare function queueForUnobservation(observable: IObservable): void;
/**
* Batch starts a transaction, at least for purposes of memoizing ComputedValues when nothing else does.
* During a batch `onBecomeUnobserved` will be called at most once per observable.
* Avoids unnecessary recalculations.
*/
export declare function startBatch(): void;
export declare function endBatch(): void;
export declare function reportObserved(observable: IObservable): boolean;
/**
* NOTE: current propagation mechanism will in case of self reruning autoruns behave unexpectedly
* It will propagate changes to observers from previous run
* It's hard or maybe impossible (with reasonable perf) to get it right with current approach
* Hopefully self reruning autoruns aren't a feature people should depend on
* Also most basic use cases should be ok
*/
export declare function propagateChanged(observable: IObservable): void;
export declare function propagateChangeConfirmed(observable: IObservable): void;
export declare function propagateMaybeChanged(observable: IObservable): void;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "259a7031-1e0d-4e2e-9049-f10290d5e3ac",
"subMetas": {}
}

@ -0,0 +1,62 @@
import { IDerivation, IDerivationState_, IObservable, Lambda, TraceMode } from "../internal";
/**
* Reactions are a special kind of derivations. Several things distinguishes them from normal reactive computations
*
* 1) They will always run, whether they are used by other computations or not.
* This means that they are very suitable for triggering side effects like logging, updating the DOM and making network requests.
* 2) They are not observable themselves
* 3) They will always run after any 'normal' derivations
* 4) They are allowed to change the state and thereby triggering themselves again, as long as they make sure the state propagates to a stable state in a reasonable amount of iterations.
*
* The state machine of a Reaction is as follows:
*
* 1) after creating, the reaction should be started by calling `runReaction` or by scheduling it (see also `autorun`)
* 2) the `onInvalidate` handler should somehow result in a call to `this.track(someFunction)`
* 3) all observables accessed in `someFunction` will be observed by this reaction.
* 4) as soon as some of the dependencies has changed the Reaction will be rescheduled for another run (after the current mutation or transaction). `isScheduled` will yield true once a dependency is stale and during this period
* 5) `onInvalidate` will be called, and we are back at step 1.
*
*/
export interface IReactionPublic {
dispose(): void;
trace(enterBreakPoint?: boolean): void;
}
export interface IReactionDisposer {
(): void;
$mobx: Reaction;
}
export declare class Reaction implements IDerivation, IReactionPublic {
name_: string;
private onInvalidate_;
private errorHandler_?;
requiresObservable_: boolean;
observing_: IObservable[];
newObserving_: IObservable[];
dependenciesState_: IDerivationState_;
diffValue_: number;
runId_: number;
unboundDepsCount_: number;
isDisposed_: boolean;
isScheduled_: boolean;
isTrackPending_: boolean;
isRunning_: boolean;
isTracing_: TraceMode;
constructor(name_: string, onInvalidate_: () => void, errorHandler_?: ((error: any, derivation: IDerivation) => void) | undefined, requiresObservable_?: boolean);
onBecomeStale_(): void;
schedule_(): void;
isScheduled(): boolean;
/**
* internal, use schedule() if you intend to kick off a reaction
*/
runReaction_(): void;
track(fn: () => void): void;
reportExceptionInDerivation_(error: any): void;
dispose(): void;
getDisposer_(): IReactionDisposer;
toString(): string;
trace(enterBreakPoint?: boolean): void;
}
export declare function onReactionError(handler: (error: any, derivation: IDerivation) => void): Lambda;
export declare function runReactions(): void;
export declare const isReaction: (x: any) => x is Reaction;
export declare function setReactionScheduler(fn: (f: () => void) => void): void;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "639733f7-5764-4d38-aa3a-aea86a3d2a83",
"subMetas": {}
}

@ -0,0 +1,37 @@
import { IComputedDidChange } from "./computedvalue";
import { IValueDidChange, IBoxDidChange } from "../types/observablevalue";
import { IObjectDidChange } from "../types/observableobject";
import { IArrayDidChange } from "../types/observablearray";
import { Lambda, ISetDidChange, IMapDidChange } from "../internal";
export declare function isSpyEnabled(): boolean;
export declare type PureSpyEvent = {
type: "action";
name: string;
object: unknown;
arguments: unknown[];
} | {
type: "scheduled-reaction";
name: string;
} | {
type: "reaction";
name: string;
} | {
type: "error";
name: string;
message: string;
error: string;
} | IComputedDidChange<unknown> | IObjectDidChange<unknown> | IArrayDidChange<unknown> | IMapDidChange<unknown, unknown> | ISetDidChange<unknown> | IValueDidChange<unknown> | IBoxDidChange<unknown> | {
type: "report-end";
spyReportEnd: true;
time?: number;
};
declare type SpyEvent = PureSpyEvent & {
spyReportStart?: true;
};
export declare function spyReport(event: SpyEvent): void;
export declare function spyReportStart(event: PureSpyEvent): void;
export declare function spyReportEnd(change?: {
time?: number;
}): void;
export declare function spy(listener: (change: SpyEvent) => void): Lambda;
export {};

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "86e2f566-eaf3-4d09-a093-2a2cc5bda60c",
"subMetas": {}
}

@ -0,0 +1,2 @@
export { IObservable, IDepTreeNode, Reaction, IReactionPublic, IReactionDisposer, untracked, IAtom, createAtom, spy, IComputedValue, IEqualsComparer, comparer, IEnhancer, IInterceptable, IInterceptor, IListenable, IObjectWillChange, IObjectDidChange, isObservableObject, IValueDidChange, IValueWillChange, IObservableValue, isObservableValue as isBoxedObservable, IObservableArray, IArrayWillChange, IArrayWillSplice, IArraySplice, IArrayUpdate, IArrayDidChange, isObservableArray, IKeyValueMap, ObservableMap, IMapEntries, IMapEntry, IMapWillChange, IMapDidChange, isObservableMap, IObservableMapInitialValues, ObservableSet, isObservableSet, ISetDidChange, ISetWillChange, IObservableSetInitialValues, transaction, observable, IObservableFactory, CreateObservableOptions, computed, IComputedFactory, isObservable, isObservableProp, isComputed, isComputedProp, extendObservable, observe, intercept, autorun, IAutorunOptions, reaction, IReactionOptions, when, IWhenOptions, action, isAction, runInAction, IActionFactory, keys, values, entries, set, remove, has, get, apiOwnKeys as ownKeys, apiDefineProperty as defineProperty, configure, onBecomeObserved, onBecomeUnobserved, flow, isFlow, flowResult, FlowCancellationError, isFlowCancellationError, toJS, trace, IObserverTree, IDependencyTree, getDependencyTree, getObserverTree, resetGlobalState as _resetGlobalState, getGlobalState as _getGlobalState, getDebugName, getAtom, getAdministration as _getAdministration, allowStateChanges as _allowStateChanges, runInAction as _allowStateChangesInsideComputed, // This has become the default behavior in Mobx 6
Lambda, $mobx, isComputingDerivation as _isComputingDerivation, onReactionError, interceptReads as _interceptReads, IComputedValueOptions, IActionRunInfo, _startAction, _endAction, allowStateReadsStart as _allowStateReadsStart, allowStateReadsEnd as _allowStateReadsEnd, makeObservable, makeAutoObservable, autoAction as _autoAction, AnnotationsMap, AnnotationMapEntry, override } from "./internal";

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "c6cb122f-9b4c-4143-bf06-e06973ff9c2f",
"subMetas": {}
}

File diff suppressed because one or more lines are too long

@ -0,0 +1,9 @@
{
"ver": "1.0.8",
"uuid": "af6f62f0-e12d-472d-a765-bb7ffe629b40",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

@ -0,0 +1,12 @@
{
"ver": "1.1.2",
"uuid": "d56e8877-9f71-433b-a53c-6e1453b32598",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

@ -0,0 +1,8 @@
import { ObservableObjectAdministration, Annotation } from "../internal";
export declare function createActionAnnotation(name: string, options?: object): Annotation;
export declare function createActionDescriptor(adm: ObservableObjectAdministration, annotation: Annotation, key: PropertyKey, descriptor: PropertyDescriptor, safeDescriptors?: boolean): {
value: Function;
configurable: boolean;
enumerable: boolean;
writable: boolean;
};

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "c0ada3a6-5516-4e26-8353-0c975edc4d2f",
"subMetas": {}
}

@ -0,0 +1,3 @@
import { Annotation } from "../internal";
export declare const autoAnnotation: Annotation;
export declare function createAutoAnnotation(options?: object): Annotation;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "6521ff91-a040-4005-8a99-f42c7fca07c1",
"subMetas": {}
}

@ -0,0 +1,2 @@
import { Annotation } from "../internal";
export declare function createComputedAnnotation(name: string, options?: object): Annotation;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "de9c8a46-03e7-4072-b819-da7ec0de1757",
"subMetas": {}
}

@ -0,0 +1,2 @@
import { IIsObservableObject, CreateObservableOptions } from "../internal";
export declare function asDynamicObservableObject(target: any, options?: CreateObservableOptions): IIsObservableObject;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "5bb30ab7-8eda-4bbe-8998-f53641952b5d",
"subMetas": {}
}

@ -0,0 +1,2 @@
import { Annotation } from "../internal";
export declare function createFlowAnnotation(name: string, options?: object): Annotation;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "14decc35-0378-458f-aff4-495d5b7fbec1",
"subMetas": {}
}

@ -0,0 +1,8 @@
import { Lambda } from "../internal";
export declare type IInterceptor<T> = (change: T) => T | null;
export interface IInterceptable<T> {
interceptors_: IInterceptor<T>[] | undefined;
}
export declare function hasInterceptors(interceptable: IInterceptable<any>): boolean;
export declare function registerInterceptor<T>(interceptable: IInterceptable<T>, handler: IInterceptor<T>): Lambda;
export declare function interceptChange<T>(interceptable: IInterceptable<T | null>, change: T | null): T | null;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "446c1efb-8e52-4043-be6d-6122f7f53a18",
"subMetas": {}
}

@ -0,0 +1,3 @@
import { IEnhancer, IObservableArray } from "../internal";
export declare function reserveArrayBuffer(max: number): void;
export declare function createLegacyArray<T>(initialValues: T[] | undefined, enhancer: IEnhancer<T>, name?: string): IObservableArray<T>;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "f1282bbe-0b16-4535-9d48-a6552f513d0b",
"subMetas": {}
}

@ -0,0 +1,7 @@
import { Lambda } from "../internal";
export interface IListenable {
changeListeners_: Function[] | undefined;
}
export declare function hasListeners(listenable: IListenable): boolean;
export declare function registerListener(listenable: IListenable, handler: Function): Lambda;
export declare function notifyListeners<T>(listenable: IListenable, change: T): void;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "3a5529da-5699-4263-ab46-4176f987b912",
"subMetas": {}
}

@ -0,0 +1,7 @@
export interface IEnhancer<T> {
(newValue: T, oldValue: T | undefined, name: string): T;
}
export declare function deepEnhancer(v: any, _: any, name: any): any;
export declare function shallowEnhancer(v: any, _: any, name: any): any;
export declare function referenceEnhancer(newValue?: any): any;
export declare function refStructEnhancer(v: any, oldValue: any): any;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "508746dd-67ff-4e8a-a311-22ded66981e7",
"subMetas": {}
}

@ -0,0 +1,2 @@
import { Annotation } from "../internal";
export declare function createObservableAnnotation(name: string, options?: object): Annotation;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "b12e6389-80f4-4b7e-86ba-f89172396ed5",
"subMetas": {}
}

@ -0,0 +1,85 @@
import { IAtom, IEnhancer, IInterceptable, IInterceptor, IListenable, Lambda } from "../internal";
export declare const UPDATE = "update";
export declare const MAX_SPLICE_SIZE = 10000;
export interface IObservableArray<T = any> extends Array<T> {
spliceWithArray(index: number, deleteCount?: number, newItems?: T[]): T[];
clear(): T[];
replace(newItems: T[]): T[];
remove(value: T): boolean;
toJSON(): T[];
}
interface IArrayBaseChange<T> {
object: IObservableArray<T>;
observableKind: "array";
debugObjectName: string;
index: number;
}
export declare type IArrayDidChange<T = any> = IArrayUpdate<T> | IArraySplice<T>;
export interface IArrayUpdate<T = any> extends IArrayBaseChange<T> {
type: "update";
newValue: T;
oldValue: T;
}
export interface IArraySplice<T = any> extends IArrayBaseChange<T> {
type: "splice";
added: T[];
addedCount: number;
removed: T[];
removedCount: number;
}
export interface IArrayWillChange<T = any> {
object: IObservableArray<T>;
index: number;
type: "update";
newValue: T;
}
export interface IArrayWillSplice<T = any> {
object: IObservableArray<T>;
index: number;
type: "splice";
added: T[];
removedCount: number;
}
export declare class ObservableArrayAdministration implements IInterceptable<IArrayWillChange<any> | IArrayWillSplice<any>>, IListenable {
owned_: boolean;
legacyMode_: boolean;
atom_: IAtom;
readonly values_: any[];
interceptors_: any;
changeListeners_: any;
enhancer_: (newV: any, oldV: any | undefined) => any;
dehancer: any;
proxy_: IObservableArray<any>;
lastKnownLength_: number;
constructor(name: string | undefined, enhancer: IEnhancer<any>, owned_: boolean, legacyMode_: boolean);
dehanceValue_(value: any): any;
dehanceValues_(values: any[]): any[];
intercept_(handler: IInterceptor<IArrayWillChange<any> | IArrayWillSplice<any>>): Lambda;
observe_(listener: (changeData: IArrayDidChange<any>) => void, fireImmediately?: boolean): Lambda;
getArrayLength_(): number;
setArrayLength_(newLength: number): void;
updateArrayLength_(oldLength: number, delta: number): void;
spliceWithArray_(index: number, deleteCount?: number, newItems?: any[]): any[];
spliceItemsIntoValues_(index: number, deleteCount: number, newItems: any[]): any[];
notifyArrayChildUpdate_(index: number, newValue: any, oldValue: any): void;
notifyArraySplice_(index: number, added: any[], removed: any[]): void;
get_(index: number): any | undefined;
set_(index: number, newValue: any): void;
}
export declare function createObservableArray<T>(initialValues: T[] | undefined, enhancer: IEnhancer<T>, name?: string, owned?: boolean): IObservableArray<T>;
export declare var arrayExtensions: {
clear(): any[];
replace(newItems: any[]): any[];
toJSON(): any[];
splice(index: number, deleteCount?: number | undefined, ...newItems: any[]): any[];
spliceWithArray(index: number, deleteCount?: number | undefined, newItems?: any[] | undefined): any[];
push(...items: any[]): number;
pop(): any;
shift(): any;
unshift(...items: any[]): number;
reverse(): any[];
sort(): any[];
remove(value: any): boolean;
};
export declare function isObservableArray(thing: any): thing is IObservableArray<any>;
export {};

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "24aca4bb-1d07-4a91-8fab-6cad31267a17",
"subMetas": {}
}

@ -0,0 +1,76 @@
import { $mobx, IEnhancer, IInterceptable, IInterceptor, IListenable, Lambda, ObservableValue, IAtom } from "../internal";
export interface IKeyValueMap<V = any> {
[key: string]: V;
}
export declare type IMapEntry<K = any, V = any> = [K, V];
export declare type IMapEntries<K = any, V = any> = IMapEntry<K, V>[];
export declare type IMapDidChange<K = any, V = any> = {
observableKind: "map";
debugObjectName: string;
} & ({
object: ObservableMap<K, V>;
name: K;
type: "update";
newValue: V;
oldValue: V;
} | {
object: ObservableMap<K, V>;
name: K;
type: "add";
newValue: V;
} | {
object: ObservableMap<K, V>;
name: K;
type: "delete";
oldValue: V;
});
export interface IMapWillChange<K = any, V = any> {
object: ObservableMap<K, V>;
type: "update" | "add" | "delete";
name: K;
newValue?: V;
}
export declare const ADD = "add";
export declare const DELETE = "delete";
export declare type IObservableMapInitialValues<K = any, V = any> = IMapEntries<K, V> | IKeyValueMap<V> | Map<K, V>;
export declare class ObservableMap<K = any, V = any> implements Map<K, V>, IInterceptable<IMapWillChange<K, V>>, IListenable {
enhancer_: IEnhancer<V>;
name_: string;
[$mobx]: {};
data_: Map<K, ObservableValue<V>>;
hasMap_: Map<K, ObservableValue<boolean>>;
keysAtom_: IAtom;
interceptors_: any;
changeListeners_: any;
dehancer: any;
constructor(initialData?: IObservableMapInitialValues<K, V>, enhancer_?: IEnhancer<V>, name_?: string);
private has_;
has(key: K): boolean;
set(key: K, value: V): this;
delete(key: K): boolean;
private updateValue_;
private addValue_;
get(key: K): V | undefined;
private dehanceValue_;
keys(): IterableIterator<K>;
values(): IterableIterator<V>;
entries(): IterableIterator<IMapEntry<K, V>>;
[Symbol.iterator](): IterableIterator<IMapEntry<K, V>>;
forEach(callback: (value: V, key: K, object: Map<K, V>) => void, thisArg?: any): void;
/** Merge another object into this object, returns this. */
merge(other: ObservableMap<K, V> | IKeyValueMap<V> | any): ObservableMap<K, V>;
clear(): void;
replace(values: ObservableMap<K, V> | IKeyValueMap<V> | any): ObservableMap<K, V>;
get size(): number;
toString(): string;
toJSON(): [K, V][];
get [Symbol.toStringTag](): string;
/**
* Observes this object. Triggers for the events 'add', 'update' and 'delete'.
* See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe
* for callback details
*/
observe_(listener: (changes: IMapDidChange<K, V>) => void, fireImmediately?: boolean): Lambda;
intercept_(handler: IInterceptor<IMapWillChange<K, V>>): Lambda;
}
export declare var isObservableMap: (thing: any) => thing is ObservableMap<any, any>;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "fb311371-fcd5-4109-aa9f-fe75163d972d",
"subMetas": {}
}

@ -0,0 +1,98 @@
import { CreateObservableOptions, Annotation, ComputedValue, IAtom, IComputedValueOptions, IEnhancer, IInterceptable, IListenable, Lambda, ObservableValue } from "../internal";
export declare type IObjectDidChange<T = any> = {
observableKind: "object";
name: PropertyKey;
object: T;
debugObjectName: string;
} & ({
type: "add";
newValue: any;
} | {
type: "update";
oldValue: any;
newValue: any;
} | {
type: "remove";
oldValue: any;
});
export declare type IObjectWillChange<T = any> = {
object: T;
type: "update" | "add";
name: PropertyKey;
newValue: any;
} | {
object: T;
type: "remove";
name: PropertyKey;
};
export declare class ObservableObjectAdministration implements IInterceptable<IObjectWillChange>, IListenable {
target_: any;
values_: Map<string | number | symbol, ObservableValue<any> | ComputedValue<any>>;
name_: string;
defaultAnnotation_: Annotation;
keysAtom_: IAtom;
changeListeners_: any;
interceptors_: any;
proxy_: any;
isPlainObject_: boolean;
appliedAnnotations_?: object;
private pendingKeys_;
constructor(target_: any, values_: Map<string | number | symbol, ObservableValue<any> | ComputedValue<any>>, name_: string, defaultAnnotation_?: Annotation);
getObservablePropValue_(key: PropertyKey): any;
setObservablePropValue_(key: PropertyKey, newValue: any): boolean | null;
get_(key: PropertyKey): any;
/**
* @param {PropertyKey} key
* @param {any} value
* @param {Annotation|boolean} annotation true - use default annotation, false - copy as is
* @param {boolean} proxyTrap whether it's called from proxy trap
* @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor
*/
set_(key: PropertyKey, value: any, proxyTrap?: boolean): boolean | null;
has_(key: PropertyKey): boolean;
/**
* @param {PropertyKey} key
* @param {Annotation|boolean} annotation true - use default annotation, false - ignore prop
*/
make_(key: PropertyKey, annotation: Annotation | boolean): void;
/**
* @param {PropertyKey} key
* @param {PropertyDescriptor} descriptor
* @param {Annotation|boolean} annotation true - use default annotation, false - copy as is
* @param {boolean} proxyTrap whether it's called from proxy trap
* @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor
*/
extend_(key: PropertyKey, descriptor: PropertyDescriptor, annotation: Annotation | boolean, proxyTrap?: boolean): boolean | null;
/**
* @param {PropertyKey} key
* @param {PropertyDescriptor} descriptor
* @param {boolean} proxyTrap whether it's called from proxy trap
* @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor
*/
defineProperty_(key: PropertyKey, descriptor: PropertyDescriptor, proxyTrap?: boolean): boolean | null;
defineObservableProperty_(key: PropertyKey, value: any, enhancer: IEnhancer<any>, proxyTrap?: boolean): boolean | null;
defineComputedProperty_(key: PropertyKey, options: IComputedValueOptions<any>, proxyTrap?: boolean): boolean | null;
/**
* @param {PropertyKey} key
* @param {PropertyDescriptor} descriptor
* @param {boolean} proxyTrap whether it's called from proxy trap
* @returns {boolean|null} true on success, false on failure (proxyTrap + non-configurable), null when cancelled by interceptor
*/
delete_(key: PropertyKey, proxyTrap?: boolean): boolean | null;
/**
* Observes this object. Triggers for the events 'add', 'update' and 'delete'.
* See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe
* for callback details
*/
observe_(callback: (changes: IObjectDidChange) => void, fireImmediately?: boolean): Lambda;
intercept_(handler: any): Lambda;
notifyPropertyAddition_(key: PropertyKey, value: any): void;
ownKeys_(): PropertyKey[];
keys_(): PropertyKey[];
}
export interface IIsObservableObject {
$mobx: ObservableObjectAdministration;
}
export declare function asObservableObject(target: any, options?: CreateObservableOptions): IIsObservableObject;
export declare function isObservableObject(thing: any): boolean;
export declare function recordAnnotationApplied(adm: ObservableObjectAdministration, annotation: Annotation, key: PropertyKey): void;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "e4d03fba-32fc-4f0f-8fe6-1361d03b7ea7",
"subMetas": {}
}

@ -0,0 +1,53 @@
import { $mobx, IEnhancer, IListenable, Lambda, IInterceptable, IInterceptor } from "../internal";
export declare type IObservableSetInitialValues<T> = Set<T> | readonly T[];
export declare type ISetDidChange<T = any> = {
object: ObservableSet<T>;
observableKind: "set";
debugObjectName: string;
type: "add";
newValue: T;
} | {
object: ObservableSet<T>;
observableKind: "set";
debugObjectName: string;
type: "delete";
oldValue: T;
};
export declare type ISetWillChange<T = any> = {
type: "delete";
object: ObservableSet<T>;
oldValue: T;
} | {
type: "add";
object: ObservableSet<T>;
newValue: T;
};
export declare class ObservableSet<T = any> implements Set<T>, IInterceptable<ISetWillChange>, IListenable {
name_: string;
[$mobx]: {};
private data_;
private atom_;
changeListeners_: any;
interceptors_: any;
dehancer: any;
enhancer_: (newV: any, oldV: any | undefined) => any;
constructor(initialData?: IObservableSetInitialValues<T>, enhancer?: IEnhancer<T>, name_?: string);
private dehanceValue_;
clear(): void;
forEach(callbackFn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
get size(): number;
add(value: T): this;
delete(value: any): boolean;
has(value: any): boolean;
entries(): IterableIterator<[T, T]>;
keys(): IterableIterator<T>;
values(): IterableIterator<T>;
replace(other: ObservableSet<T> | IObservableSetInitialValues<T>): ObservableSet<T>;
observe_(listener: (changes: ISetDidChange<T>) => void, fireImmediately?: boolean): Lambda;
intercept_(handler: IInterceptor<ISetWillChange<T>>): Lambda;
toJSON(): T[];
toString(): string;
[Symbol.iterator](): IterableIterator<T>;
get [Symbol.toStringTag](): string;
}
export declare var isObservableSet: (thing: any) => thing is ObservableSet<any>;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "23fb3467-d0f9-4d8d-bb04-8f805287ec45",
"subMetas": {}
}

@ -0,0 +1,51 @@
import { Atom, IEnhancer, IInterceptable, IEqualsComparer, IInterceptor, IListenable, Lambda } from "../internal";
export interface IValueWillChange<T> {
object: IObservableValue<T>;
type: "update";
newValue: T;
}
export declare type IValueDidChange<T = any> = {
type: "update";
observableKind: "value";
object: IObservableValue<T>;
debugObjectName: string;
newValue: unknown;
oldValue: unknown;
};
export declare type IBoxDidChange<T = any> = {
type: "create";
observableKind: "value";
object: IObservableValue<T>;
debugObjectName: string;
newValue: unknown;
} | IValueDidChange<T>;
export interface IObservableValue<T> {
get(): T;
set(value: T): void;
intercept_(handler: IInterceptor<IValueWillChange<T>>): Lambda;
observe_(listener: (change: IValueDidChange<T>) => void, fireImmediately?: boolean): Lambda;
}
export declare class ObservableValue<T> extends Atom implements IObservableValue<T>, IInterceptable<IValueWillChange<T>>, IListenable {
enhancer: IEnhancer<T>;
name_: string;
private equals;
hasUnreportedChange_: boolean;
interceptors_: any;
changeListeners_: any;
value_: any;
dehancer: any;
constructor(value: T, enhancer: IEnhancer<T>, name_?: string, notifySpy?: boolean, equals?: IEqualsComparer<any>);
private dehanceValue;
set(newValue: T): void;
private prepareNewValue_;
setNewValue_(newValue: T): void;
get(): T;
intercept_(handler: IInterceptor<IValueWillChange<T>>): Lambda;
observe_(listener: (change: IValueDidChange<T>) => void, fireImmediately?: boolean): Lambda;
raw(): any;
toJSON(): T;
toString(): string;
valueOf(): T;
[Symbol.toPrimitive](): T;
}
export declare const isObservableValue: (x: any) => x is IObservableValue<any>;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "ad823519-6e73-4152-9ca3-427f9005e931",
"subMetas": {}
}

@ -0,0 +1,3 @@
import { Annotation } from "../internal";
export declare const override: Annotation & PropertyDecorator;
export declare function isOverride(annotation: Annotation): boolean;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "4e95b329-5014-44e0-846b-edca61351db8",
"subMetas": {}
}

@ -0,0 +1,4 @@
import { IDepTreeNode } from "../internal";
export declare function getAtom(thing: any, property?: PropertyKey): IDepTreeNode;
export declare function getAdministration(thing: any, property?: string): any;
export declare function getDebugName(thing: any, property?: string): string;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "7ff0915c-3e0e-4ef9-97c8-dfe200b5d48e",
"subMetas": {}
}

@ -0,0 +1,12 @@
{
"ver": "1.1.2",
"uuid": "f1962802-cc62-433a-8ffb-edad2bb1dc61",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

@ -0,0 +1,14 @@
export interface IEqualsComparer<T> {
(a: T, b: T): boolean;
}
declare function identityComparer(a: any, b: any): boolean;
declare function structuralComparer(a: any, b: any): boolean;
declare function shallowComparer(a: any, b: any): boolean;
declare function defaultComparer(a: any, b: any): boolean;
export declare const comparer: {
identity: typeof identityComparer;
structural: typeof structuralComparer;
default: typeof defaultComparer;
shallow: typeof shallowComparer;
};
export {};

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "6bc63ec0-afa0-430d-8f19-f51cfd6d788a",
"subMetas": {}
}

@ -0,0 +1 @@
export declare function deepEqual(a: any, b: any, depth?: number): boolean;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "0ee281b6-48ef-40c3-ad96-6078a6672d15",
"subMetas": {}
}

@ -0,0 +1 @@
export declare function getGlobal(): any;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "d81c6f2c-0566-44a8-9856-27497801d925",
"subMetas": {}
}

@ -0,0 +1 @@
export declare function makeIterable<T>(iterator: Iterator<T>): IterableIterator<T>;

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "4524da62-f78d-4dfd-9a3d-0a3036e6ce7d",
"subMetas": {}
}

@ -0,0 +1,45 @@
export declare const assign: {
<T, U>(target: T, source: U): T & U;
<T_1, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
<T_2, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
(target: object, ...sources: any[]): any;
};
export declare const getDescriptor: (o: any, p: string | number | symbol) => PropertyDescriptor | undefined;
export declare const defineProperty: (o: any, p: string | number | symbol, attributes: PropertyDescriptor & ThisType<any>) => any;
export declare const objectPrototype: Object;
export declare const EMPTY_ARRAY: never[];
export declare const EMPTY_OBJECT: {};
export interface Lambda {
(): void;
name?: string;
}
export declare function assertProxies(): void;
export declare function warnAboutProxyRequirement(msg: string): void;
export declare function getNextId(): number;
/**
* Makes sure that the provided function is invoked at most once.
*/
export declare function once(func: Lambda): Lambda;
export declare const noop: () => void;
export declare function isFunction(fn: any): fn is Function;
export declare function isString(value: any): value is string;
export declare function isStringish(value: any): value is string | number | symbol;
export declare function isObject(value: any): value is Object;
export declare function isPlainObject(value: any): boolean;
export declare function isGenerator(obj: any): boolean;
export declare function addHiddenProp(object: any, propName: PropertyKey, value: any): void;
export declare function addHiddenFinalProp(object: any, propName: PropertyKey, value: any): void;
export declare function createInstanceofPredicate<T>(name: string, theClass: new (...args: any[]) => T): (x: any) => x is T;
export declare function isES6Map(thing: any): boolean;
export declare function isES6Set(thing: any): thing is Set<any>;
/**
* Returns the following: own enumerable keys and symbols.
*/
export declare function getPlainObjectKeys(object: any): (string | symbol)[];
export declare const ownKeys: (target: any) => PropertyKey[];
export declare function stringifyKey(key: any): string;
export declare function toPrimitive(value: any): any;
export declare function hasProp(target: Object, prop: PropertyKey): boolean;
export declare const getOwnPropertyDescriptors: <T>(o: T) => { [P in keyof T]: TypedPropertyDescriptor<T[P]>; } & {
[x: string]: PropertyDescriptor;
};

@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "b5a51edd-92c4-4928-9054-11a2640c7bee",
"subMetas": {}
}

@ -0,0 +1,121 @@
import { Drone_Event } from "./define/Event";
import { IDroneInfo, IDroneLocationInfo } from "./define/Interface";
import BaseComp from "./external/BaseComp";
const { ccclass, property } = cc._decorator;
@ccclass
export default class TestFakeData extends BaseComp {
protected onLoad(): void {
console.log('ken666::TestFakeData::onLoad()')
cc.tween(new cc.Node())
.delay(3)
.call(() => {
let data: Array<IDroneInfo> = [
{
droneName: '無人機A',
sort: 0,
id: 'Fly-A'
},
{
droneName: '無人機F',
sort: 5,
id: 'Fly-F'
},
{
droneName: '無人機E',
sort: 4,
id: 'Fly-E'
},
{
droneName: '無人機D',
sort: 3,
id: 'Fly-D'
},
{
droneName: '無人機H',
sort: 7,
id: 'Fly-H'
},
{
droneName: '無人機G',
sort: 6,
id: 'Fly-G'
},
{
droneName: '無人機B',
sort: 1,
id: 'Fly-B'
},
{
droneName: '無人機C',
sort: 2,
id: 'Fly-C'
},
]
console.log('ken666::delay3 send Drone_Event.DRONE_LIST')
this.emit(Drone_Event.DRONE_LIST, data)
})
.start()
cc.tween(new cc.Node())
.delay(1)
.call(() => {
let data: Array<IDroneLocationInfo> = [
{
id: 'Fly-A',
bettery: 10,
locationN: `12'34'56.7""`,
locationE: `98'76'54.0123""`
},
{
id: 'Fly-B',
bettery: 87,
locationN: `64'31'3.14""`,
locationE: `55'66'11""`
},
{
id: 'Fly-C',
bettery: 49,
locationN: `72'38'18.2""`,
locationE: `47'10'2.01""`
},
{
id: 'Fly-D',
bettery: 51,
locationN: `25'68'54.1""`,
locationE: `12'14'74""`
},
{
id: 'Fly-E',
bettery: 50,
locationN: `19'85'12.14""`,
locationE: `7'4'12.14""`
},
{
id: 'Fly-F',
bettery: 100,
locationN: `91'20'3.1""`,
locationE: `700'600'5.2""`
},
{
id: 'Fly-G',
bettery: 0,
locationN: `10'20'3.0""`,
locationE: `4'5'9.99""`
},
{
id: 'Fly-H',
bettery: 1,
locationN: `8'7'8.7""`,
locationE: `3'3'1.2""`
},
]
console.log('ken666::delay3 send Drone_Event.DRONE_DETAIL')
this.emit(Drone_Event.DRONE_DETAIL, data)
})
.start()
}
}

@ -0,0 +1,9 @@
{
"ver": "1.0.8",
"uuid": "b116657e-0d07-4780-be00-745ebc450ded",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

@ -0,0 +1,12 @@
{
"ver": "1.1.2",
"uuid": "b8c4541e-6396-48e4-81c1-00cb769f6488",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

@ -0,0 +1,5 @@
export enum Drone_Event {
DRONE_LIST = "DRONE_LIST",
DRONE_CLICK = "DRONE_CLICK",
DRONE_DETAIL = "DRONE_DETAIL"
}

@ -0,0 +1,9 @@
{
"ver": "1.0.8",
"uuid": "cdb1cc38-359d-4018-bea6-be9719742642",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

@ -0,0 +1,19 @@
export interface IDroneInfo {
droneName: string
sort: number
id: string
}
export interface IDroneLocationInfo {
id: string
bettery: number
locationN: string
locationE: string
}
// export interface IRespose {
// success: boolean
// msg: string
// code: number
// t: IGameData
// }

@ -0,0 +1,9 @@
{
"ver": "1.0.8",
"uuid": "193b039c-3e47-4399-923a-db6d86a6b41b",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

@ -0,0 +1,12 @@
{
"ver": "1.1.2",
"uuid": "59cc8110-afbe-4cbb-915a-b20ca6dcffc0",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

@ -0,0 +1,58 @@
import { Drone_Event } from "../define/Event";
import { IDroneInfo, IDroneLocationInfo } from "../define/Interface";
import EmitterBase from "../external/EmitterBase";
import { Utils } from "../external/Utils";
import { makeAutoObservable } from "../Library/mobx/mobx";
export class CommonModel extends EmitterBase {
public static _instance: CommonModel = null;
public static get inst() {
if (CommonModel._instance == null) {
CommonModel._instance = new CommonModel()
}
return CommonModel._instance;
}
droneInfo: Array<IDroneInfo> = []
droneDetail: Array<IDroneLocationInfo> = []
constructor() {
super();
this.on(Drone_Event.DRONE_LIST, this.setDrone.bind(this))
this.on(Drone_Event.DRONE_DETAIL, this.setDroneDetail.bind(this))
makeAutoObservable(this)
}
private setDrone(droneInfo: Array<IDroneInfo>) {
console.log('setDrone')
droneInfo.sort((a, b) => a.sort - b.sort)
// this.droneInfo = Utils.deepClone(droneInfo)
this.droneInfo = droneInfo
}
private setDroneDetail(droneDetail: Array<IDroneLocationInfo>) {
console.log('setDroneDetail')
this.droneDetail = Utils.deepClone(droneDetail)
}
// async init() {
// const response = await httpSender.sendGet<IRespose>('/api/front/index/init', { deviceType: DeviceTypeCode[Common.curSkin] })
// if (response && response.success) {
// let gameData = response.t;
// cc.log(`init response:`, response);
// await this.setBanners(gameData.banners);
// // GameSocket.inst.connect(Common.brokerURL, Common.token)
// this.initGameData(gameData);
// this.followDealerInfo = gameData.userFollowInfoVO;
// this.userInfo.data = gameData;
// this.chipPrice = this.userInfo.chipInfo[0];
// LocalDataMgr.inst.resetLocalData();
// this.on(ClientEvents.LanguageChanged, this.onLanguageChanged.bind(this));
// return true;
// }
// else {
// cc.log(response);
// }
// return false;
// }
}

@ -0,0 +1,9 @@
{
"ver": "1.0.8",
"uuid": "8643ce66-08cf-48f8-bcb3-20a64be2ed35",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

@ -0,0 +1,52 @@
import { Drone_Event } from "../define/Event";
import { IDroneInfo } from "../define/Interface";
import BaseComp from "../external/BaseComp";
import { autorun, Lambda, observe, reaction } from "../Library/mobx/mobx";
import { CommonModel } from "./CommonModel";
import SingleDroneItem from "./SingleDroneItem";
const { ccclass, property } = cc._decorator;
@ccclass
export default class DroneListManager extends BaseComp {
@property(cc.Node)
contentNode: cc.Node = null
@property(cc.Prefab)
dronePrefab: cc.Prefab = null
// private droneInfoDisposer: Lambda = null
onEnable() {
super.onEnable()
this._pool.push(reaction(this.initDroneList.bind(this), { fireImmediately: true }))
// this._pool.push(autorun( this.initDroneList.bind(this)))
// this.cancelObserve()
// this.droneInfoDisposer = observe(CommonModel, 'droneInfo', () => {
// this.initDroneList()
// })
}
onDisable() {
// this.off(Drone_Event.DRONE_LIST)
super.onDisable();
}
initDroneList() {
console.log('ken666::DroneListManager::initDroneList()')
this.contentNode.removeAllChildren()
CommonModel.inst.droneInfo.forEach(data => {
const {droneName, id} = data
let droneItem = cc.instantiate(this.dronePrefab)
let droneComponent = droneItem.getComponent(SingleDroneItem)
droneComponent.setData(droneName, id)
droneItem.parent = this.contentNode
})
}
// private cancelObserve() {
// if (this.droneInfoDisposer) {
// this.droneInfoDisposer()
// this.droneInfoDisposer = null;
// }
// }
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save