3
0

LY_SC_UnitTest_SelfDeactivateParseFromHandler.scriptcanvas 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651
  1. {
  2. "Type": "JsonSerialization",
  3. "Version": 1,
  4. "ClassName": "ScriptCanvasData",
  5. "ClassData": {
  6. "m_scriptCanvas": {
  7. "Id": {
  8. "id": 2633762928522697
  9. },
  10. "Name": "LY_SC_UnitTest_SelfDeactivateParseFromHandler",
  11. "Components": {
  12. "Component_[3983642449115486944]": {
  13. "$type": "EditorGraphVariableManagerComponent",
  14. "Id": 3983642449115486944,
  15. "m_variableData": {
  16. "m_nameVariableMap": [
  17. {
  18. "Key": {
  19. "m_id": "{4D570D7F-603C-4A5A-9FE5-766B1B190FE7}"
  20. },
  21. "Value": {
  22. "Datum": {
  23. "isOverloadedStorage": false,
  24. "scriptCanvasType": {
  25. "m_type": 1
  26. },
  27. "isNullPointer": false,
  28. "$type": "EntityId",
  29. "value": {
  30. "id": 2901262558
  31. },
  32. "label": "EntityID"
  33. },
  34. "VariableId": {
  35. "m_id": "{4D570D7F-603C-4A5A-9FE5-766B1B190FE7}"
  36. },
  37. "VariableName": "Variable 1"
  38. }
  39. }
  40. ]
  41. }
  42. },
  43. "Component_[5878553349367570742]": {
  44. "$type": "EditorGraph",
  45. "Id": 5878553349367570742,
  46. "m_graphData": {
  47. "m_nodes": [
  48. {
  49. "Id": {
  50. "id": 2633767223489993
  51. },
  52. "Name": "SC-Node(DeactivateGameEntity)",
  53. "Components": {
  54. "Component_[17805866068454873145]": {
  55. "$type": "{E42861BD-1956-45AE-8DD7-CCFC1E3E5ACF} Method",
  56. "Id": 17805866068454873145,
  57. "Slots": [
  58. {
  59. "id": {
  60. "m_id": "{98C49ACF-B89A-4DAC-B841-DFA03C957725}"
  61. },
  62. "contracts": [
  63. {
  64. "$type": "SlotTypeContract"
  65. },
  66. null
  67. ],
  68. "slotName": "EntityID: 0",
  69. "Descriptor": {
  70. "ConnectionType": 1,
  71. "SlotType": 2
  72. },
  73. "DataType": 1
  74. },
  75. {
  76. "id": {
  77. "m_id": "{19DA65F7-5075-4E91-958C-2A924D6339D8}"
  78. },
  79. "contracts": [
  80. {
  81. "$type": "SlotTypeContract"
  82. }
  83. ],
  84. "slotName": "In",
  85. "Descriptor": {
  86. "ConnectionType": 1,
  87. "SlotType": 1
  88. }
  89. },
  90. {
  91. "id": {
  92. "m_id": "{D2F00F3C-5482-4BBA-8AF1-CAFF1F37E1B2}"
  93. },
  94. "contracts": [
  95. {
  96. "$type": "SlotTypeContract"
  97. }
  98. ],
  99. "slotName": "Out",
  100. "Descriptor": {
  101. "ConnectionType": 2,
  102. "SlotType": 1
  103. }
  104. }
  105. ],
  106. "Datums": [
  107. {
  108. "isOverloadedStorage": false,
  109. "scriptCanvasType": {
  110. "m_type": 1
  111. },
  112. "isNullPointer": false,
  113. "$type": "EntityId",
  114. "value": {
  115. "id": 4294967295
  116. },
  117. "label": "Entity Id"
  118. }
  119. ],
  120. "methodType": 0,
  121. "methodName": "DeactivateGameEntity",
  122. "className": "GameEntityContextRequestBus",
  123. "resultSlotIDs": [
  124. {}
  125. ],
  126. "prettyClassName": "GameEntityContextRequestBus"
  127. }
  128. }
  129. },
  130. {
  131. "Id": {
  132. "id": 2633771518457289
  133. },
  134. "Name": "EBusEventHandler",
  135. "Components": {
  136. "Component_[17832756931319239818]": {
  137. "$type": "EBusEventHandler",
  138. "Id": 17832756931319239818,
  139. "Slots": [
  140. {
  141. "id": {
  142. "m_id": "{3784039E-8DA6-4D69-B2A1-E2BB279AF4FB}"
  143. },
  144. "contracts": [
  145. {
  146. "$type": "SlotTypeContract"
  147. }
  148. ],
  149. "slotName": "Connect",
  150. "toolTip": "Connect this event handler to the specified entity.",
  151. "Descriptor": {
  152. "ConnectionType": 1,
  153. "SlotType": 1
  154. }
  155. },
  156. {
  157. "id": {
  158. "m_id": "{AE1D1A59-0433-4432-B47C-90B79558C1AD}"
  159. },
  160. "contracts": [
  161. {
  162. "$type": "SlotTypeContract"
  163. }
  164. ],
  165. "slotName": "Disconnect",
  166. "toolTip": "Disconnect this event handler.",
  167. "Descriptor": {
  168. "ConnectionType": 1,
  169. "SlotType": 1
  170. }
  171. },
  172. {
  173. "id": {
  174. "m_id": "{9D92E72C-A014-491D-AA56-3D724E15E9B1}"
  175. },
  176. "contracts": [
  177. {
  178. "$type": "SlotTypeContract"
  179. }
  180. ],
  181. "slotName": "OnConnected",
  182. "toolTip": "Signaled when a connection has taken place.",
  183. "Descriptor": {
  184. "ConnectionType": 2,
  185. "SlotType": 1
  186. }
  187. },
  188. {
  189. "id": {
  190. "m_id": "{73E6CD2E-D4D8-4571-8B00-0D2063926091}"
  191. },
  192. "contracts": [
  193. {
  194. "$type": "SlotTypeContract"
  195. }
  196. ],
  197. "slotName": "OnDisconnected",
  198. "toolTip": "Signaled when this event handler is disconnected.",
  199. "Descriptor": {
  200. "ConnectionType": 2,
  201. "SlotType": 1
  202. }
  203. },
  204. {
  205. "id": {
  206. "m_id": "{E51B2F07-A729-4A58-82E8-FF3D183F17FD}"
  207. },
  208. "contracts": [
  209. {
  210. "$type": "SlotTypeContract"
  211. }
  212. ],
  213. "slotName": "OnFailure",
  214. "toolTip": "Signaled when it is not possible to connect this handler.",
  215. "Descriptor": {
  216. "ConnectionType": 2,
  217. "SlotType": 1
  218. }
  219. },
  220. {
  221. "id": {
  222. "m_id": "{B1B8F983-4534-444E-B273-72EC18C3C973}"
  223. },
  224. "contracts": [
  225. {
  226. "$type": "SlotTypeContract"
  227. },
  228. null
  229. ],
  230. "slotName": "Source",
  231. "toolTip": "ID used to connect on a specific Event address (Type: EntityId)",
  232. "Descriptor": {
  233. "ConnectionType": 1,
  234. "SlotType": 2
  235. },
  236. "DataType": 1
  237. },
  238. {
  239. "id": {
  240. "m_id": "{353DA5A9-3067-4B29-9869-85C8E4A8EEC3}"
  241. },
  242. "contracts": [
  243. {
  244. "$type": "SlotTypeContract"
  245. }
  246. ],
  247. "slotName": "EntityID",
  248. "DisplayDataType": {
  249. "m_type": 1
  250. },
  251. "Descriptor": {
  252. "ConnectionType": 2,
  253. "SlotType": 2
  254. },
  255. "DataType": 1
  256. },
  257. {
  258. "id": {
  259. "m_id": "{06DB832A-13DD-4870-BEAC-A72EF9964C62}"
  260. },
  261. "contracts": [
  262. {
  263. "$type": "SlotTypeContract"
  264. }
  265. ],
  266. "slotName": "ExecutionSlot:OnEntityActivated",
  267. "Descriptor": {
  268. "ConnectionType": 2,
  269. "SlotType": 1
  270. },
  271. "IsLatent": true
  272. },
  273. {
  274. "id": {
  275. "m_id": "{F2069590-7C2B-4284-97B2-2B3549357E8D}"
  276. },
  277. "contracts": [
  278. {
  279. "$type": "SlotTypeContract"
  280. }
  281. ],
  282. "slotName": "EntityID",
  283. "DisplayDataType": {
  284. "m_type": 1
  285. },
  286. "Descriptor": {
  287. "ConnectionType": 2,
  288. "SlotType": 2
  289. },
  290. "DataType": 1
  291. },
  292. {
  293. "id": {
  294. "m_id": "{3641C8E3-AF63-4B28-9692-A802A8E3CCF0}"
  295. },
  296. "contracts": [
  297. {
  298. "$type": "SlotTypeContract"
  299. }
  300. ],
  301. "slotName": "ExecutionSlot:OnEntityDeactivated",
  302. "Descriptor": {
  303. "ConnectionType": 2,
  304. "SlotType": 1
  305. },
  306. "IsLatent": true
  307. }
  308. ],
  309. "Datums": [
  310. {
  311. "isOverloadedStorage": false,
  312. "scriptCanvasType": {
  313. "m_type": 1
  314. },
  315. "isNullPointer": false,
  316. "$type": "EntityId",
  317. "value": {
  318. "id": 2901262558
  319. },
  320. "label": "Source"
  321. }
  322. ],
  323. "m_eventMap": [
  324. {
  325. "Key": {
  326. "Value": 245425936
  327. },
  328. "Value": {
  329. "m_eventName": "OnEntityActivated",
  330. "m_eventId": {
  331. "Value": 245425936
  332. },
  333. "m_eventSlotId": {
  334. "m_id": "{06DB832A-13DD-4870-BEAC-A72EF9964C62}"
  335. },
  336. "m_parameterSlotIds": [
  337. {
  338. "m_id": "{353DA5A9-3067-4B29-9869-85C8E4A8EEC3}"
  339. }
  340. ],
  341. "m_numExpectedArguments": 1
  342. }
  343. },
  344. {
  345. "Key": {
  346. "Value": 4273369222
  347. },
  348. "Value": {
  349. "m_eventName": "OnEntityDeactivated",
  350. "m_eventId": {
  351. "Value": 4273369222
  352. },
  353. "m_eventSlotId": {
  354. "m_id": "{3641C8E3-AF63-4B28-9692-A802A8E3CCF0}"
  355. },
  356. "m_parameterSlotIds": [
  357. {
  358. "m_id": "{F2069590-7C2B-4284-97B2-2B3549357E8D}"
  359. }
  360. ],
  361. "m_numExpectedArguments": 1
  362. }
  363. }
  364. ],
  365. "m_ebusName": "EntityBus",
  366. "m_busId": {
  367. "Value": 3358774020
  368. }
  369. }
  370. }
  371. },
  372. {
  373. "Id": {
  374. "id": 2633775813424585
  375. },
  376. "Name": "SC-Node(ActivateGameEntity)",
  377. "Components": {
  378. "Component_[18266646947590685490]": {
  379. "$type": "{E42861BD-1956-45AE-8DD7-CCFC1E3E5ACF} Method",
  380. "Id": 18266646947590685490,
  381. "Slots": [
  382. {
  383. "id": {
  384. "m_id": "{9FC01CE9-B2ED-4C79-91E5-F2B56BD3AC37}"
  385. },
  386. "contracts": [
  387. {
  388. "$type": "SlotTypeContract"
  389. },
  390. null
  391. ],
  392. "slotName": "EntityID: 0",
  393. "Descriptor": {
  394. "ConnectionType": 1,
  395. "SlotType": 2
  396. },
  397. "DataType": 1
  398. },
  399. {
  400. "id": {
  401. "m_id": "{EB1793B7-C2B7-4E7C-B9FF-9603300924E8}"
  402. },
  403. "contracts": [
  404. {
  405. "$type": "SlotTypeContract"
  406. }
  407. ],
  408. "slotName": "In",
  409. "Descriptor": {
  410. "ConnectionType": 1,
  411. "SlotType": 1
  412. }
  413. },
  414. {
  415. "id": {
  416. "m_id": "{FE97E04E-E7A4-474B-ABCE-58FF3741799C}"
  417. },
  418. "contracts": [
  419. {
  420. "$type": "SlotTypeContract"
  421. }
  422. ],
  423. "slotName": "Out",
  424. "Descriptor": {
  425. "ConnectionType": 2,
  426. "SlotType": 1
  427. }
  428. }
  429. ],
  430. "Datums": [
  431. {
  432. "isOverloadedStorage": false,
  433. "scriptCanvasType": {
  434. "m_type": 1
  435. },
  436. "isNullPointer": false,
  437. "$type": "EntityId",
  438. "value": {
  439. "id": 4294967295
  440. },
  441. "label": "Entity Id"
  442. }
  443. ],
  444. "methodType": 0,
  445. "methodName": "ActivateGameEntity",
  446. "className": "GameEntityContextRequestBus",
  447. "resultSlotIDs": [
  448. {}
  449. ],
  450. "prettyClassName": "GameEntityContextRequestBus"
  451. }
  452. }
  453. }
  454. ],
  455. "m_connections": [
  456. {
  457. "Id": {
  458. "id": 2633780108391881
  459. },
  460. "Name": "srcEndpoint=(DeactivateGameEntity: Out), destEndpoint=(ActivateGameEntity: In)",
  461. "Components": {
  462. "Component_[10266927351671840941]": {
  463. "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection",
  464. "Id": 10266927351671840941,
  465. "sourceEndpoint": {
  466. "nodeId": {
  467. "id": 2633767223489993
  468. },
  469. "slotId": {
  470. "m_id": "{D2F00F3C-5482-4BBA-8AF1-CAFF1F37E1B2}"
  471. }
  472. },
  473. "targetEndpoint": {
  474. "nodeId": {
  475. "id": 2633775813424585
  476. },
  477. "slotId": {
  478. "m_id": "{EB1793B7-C2B7-4E7C-B9FF-9603300924E8}"
  479. }
  480. }
  481. }
  482. }
  483. },
  484. {
  485. "Id": {
  486. "id": 2633784403359177
  487. },
  488. "Name": "srcEndpoint=(EntityBus Handler: ExecutionSlot:OnEntityActivated), destEndpoint=(DeactivateGameEntity: In)",
  489. "Components": {
  490. "Component_[15695554411769166918]": {
  491. "$type": "{64CA5016-E803-4AC4-9A36-BDA2C890C6EB} Connection",
  492. "Id": 15695554411769166918,
  493. "sourceEndpoint": {
  494. "nodeId": {
  495. "id": 2633771518457289
  496. },
  497. "slotId": {
  498. "m_id": "{06DB832A-13DD-4870-BEAC-A72EF9964C62}"
  499. }
  500. },
  501. "targetEndpoint": {
  502. "nodeId": {
  503. "id": 2633767223489993
  504. },
  505. "slotId": {
  506. "m_id": "{19DA65F7-5075-4E91-958C-2A924D6339D8}"
  507. }
  508. }
  509. }
  510. }
  511. }
  512. ]
  513. },
  514. "m_assetType": "{3E2AC8CD-713F-453E-967F-29517F331784}",
  515. "versionData": {
  516. "_grammarVersion": 1,
  517. "_runtimeVersion": 1,
  518. "_fileVersion": 1
  519. },
  520. "m_variableCounter": 1,
  521. "GraphCanvasData": [
  522. {
  523. "Key": {
  524. "id": 2633762928522697
  525. },
  526. "Value": {
  527. "ComponentData": {
  528. "{5F84B500-8C45-40D1-8EFC-A5306B241444}": {
  529. "$type": "SceneComponentSaveData"
  530. }
  531. }
  532. }
  533. },
  534. {
  535. "Key": {
  536. "id": 2633767223489993
  537. },
  538. "Value": {
  539. "ComponentData": {
  540. "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": {
  541. "$type": "NodeSaveData"
  542. },
  543. "{328FF15C-C302-458F-A43D-E1794DE0904E}": {
  544. "$type": "GeneralNodeTitleComponentSaveData",
  545. "PaletteOverride": "MethodNodeTitlePalette"
  546. },
  547. "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": {
  548. "$type": "GeometrySaveData",
  549. "Position": [
  550. 500.0,
  551. 400.0
  552. ]
  553. },
  554. "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": {
  555. "$type": "StylingComponentSaveData",
  556. "SubStyle": ".method"
  557. },
  558. "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": {
  559. "$type": "PersistentIdComponentSaveData",
  560. "PersistentId": "{3EA4D3C3-913A-4D0C-A285-64A8F8A7B90C}"
  561. }
  562. }
  563. }
  564. },
  565. {
  566. "Key": {
  567. "id": 2633771518457289
  568. },
  569. "Value": {
  570. "ComponentData": {
  571. "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": {
  572. "$type": "NodeSaveData"
  573. },
  574. "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": {
  575. "$type": "GeometrySaveData",
  576. "Position": [
  577. 160.0,
  578. 140.0
  579. ]
  580. },
  581. "{9E81C95F-89C0-4476-8E82-63CCC4E52E04}": {
  582. "$type": "EBusHandlerNodeDescriptorSaveData",
  583. "EventIds": [
  584. {
  585. "Value": 245425936
  586. }
  587. ]
  588. },
  589. "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": {
  590. "$type": "StylingComponentSaveData"
  591. },
  592. "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": {
  593. "$type": "PersistentIdComponentSaveData",
  594. "PersistentId": "{BBA782BA-8E1F-499E-9FAA-A85A74E36EED}"
  595. }
  596. }
  597. }
  598. },
  599. {
  600. "Key": {
  601. "id": 2633775813424585
  602. },
  603. "Value": {
  604. "ComponentData": {
  605. "{24CB38BB-1705-4EC5-8F63-B574571B4DCD}": {
  606. "$type": "NodeSaveData"
  607. },
  608. "{328FF15C-C302-458F-A43D-E1794DE0904E}": {
  609. "$type": "GeneralNodeTitleComponentSaveData",
  610. "PaletteOverride": "MethodNodeTitlePalette"
  611. },
  612. "{7CC444B1-F9B3-41B5-841B-0C4F2179F111}": {
  613. "$type": "GeometrySaveData",
  614. "Position": [
  615. 900.0,
  616. 460.0
  617. ]
  618. },
  619. "{B0B99C8A-03AF-4CF6-A926-F65C874C3D97}": {
  620. "$type": "StylingComponentSaveData",
  621. "SubStyle": ".method"
  622. },
  623. "{B1F49A35-8408-40DA-B79E-F1E3B64322CE}": {
  624. "$type": "PersistentIdComponentSaveData",
  625. "PersistentId": "{5F527A0C-1F1D-4BDC-8D45-FBBA211B8D50}"
  626. }
  627. }
  628. }
  629. }
  630. ],
  631. "StatisticsHelper": {
  632. "InstanceCounter": [
  633. {
  634. "Key": 5842116761103598202,
  635. "Value": 1
  636. },
  637. {
  638. "Key": 13774516199848960378,
  639. "Value": 1
  640. },
  641. {
  642. "Key": 13774516200723425656,
  643. "Value": 1
  644. }
  645. ]
  646. }
  647. }
  648. }
  649. }
  650. }
  651. }