PrefabBehaviorTests.inl 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. namespace UnitTest
  9. {
  10. namespace Data
  11. {
  12. const char* jsonPrefab = R"JSON(
  13. {
  14. "ContainerEntity": {
  15. "Id": "ContainerEntity",
  16. "Name": "test_template_1",
  17. "Components": {
  18. "Component_[12122553907433030840]": {
  19. "$type": "EditorVisibilityComponent",
  20. "Id": 12122553907433030840
  21. },
  22. "Component_[5666150279650800686]": {
  23. "$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
  24. "Id": 5666150279650800686,
  25. "Parent Entity": ""
  26. },
  27. "Component_[8790726658974076423]": {
  28. "$type": "EditorOnlyEntityComponent",
  29. "Id": 8790726658974076423
  30. }
  31. }
  32. },
  33. "Entities": {
  34. "Entity_[1588652751483]": {
  35. "Id": "Entity_[1588652751483]",
  36. "Name": "root",
  37. "Components": {
  38. "Component_[11872748096995986607]": {
  39. "$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
  40. "Id": 11872748096995986607,
  41. "Parent Entity": "ContainerEntity",
  42. "Transform Data": {
  43. "Rotate": [
  44. 0.0,
  45. 0.10000000149011612,
  46. 180.0
  47. ]
  48. }
  49. },
  50. "Component_[12138841758570858610]": {
  51. "$type": "EditorVisibilityComponent",
  52. "Id": 12138841758570858610
  53. },
  54. "Component_[15735658354806796004]": {
  55. "$type": "EditorOnlyEntityComponent",
  56. "Id": 15735658354806796004
  57. }
  58. }
  59. },
  60. "Entity_[1592947718779]": {
  61. "Id": "Entity_[1592947718779]",
  62. "Name": "cube",
  63. "Components": {
  64. "Component_[2505301170249328189]": {
  65. "$type": "EditorOnlyEntityComponent",
  66. "Id": 2505301170249328189
  67. },
  68. "Component_[3716170894544198343]": {
  69. "$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
  70. "Id": 3716170894544198343,
  71. "Parent Entity": "Entity_[1588652751483]"
  72. },
  73. "Component_[5862175558847453681]": {
  74. "$type": "EditorVisibilityComponent",
  75. "Id": 5862175558847453681
  76. }
  77. }
  78. },
  79. "Entity_[1597242686075]": {
  80. "Id": "Entity_[1597242686075]",
  81. "Name": "cubeKid",
  82. "Components": {
  83. "Component_[10128771992421174485]": {
  84. "$type": "{27F1E1A1-8D9D-4C3B-BD3A-AFB9762449C0} TransformComponent",
  85. "Id": 10128771992421174485,
  86. "Parent Entity": "Entity_[1592947718779]"
  87. },
  88. "Component_[14936165953779771344]": {
  89. "$type": "EditorVisibilityComponent",
  90. "Id": 14936165953779771344
  91. },
  92. "Component_[403416213715997356]": {
  93. "$type": "EditorOnlyEntityComponent",
  94. "Id": 403416213715997356
  95. }
  96. }
  97. }
  98. }
  99. }
  100. )JSON";
  101. }
  102. }