Atomic2D.cpp 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. // Copyright (c) 2008-2017 the Urho3D project.
  2. //
  3. // Permission is hereby granted, free of charge, to any person obtaining a copy
  4. // of this software and associated documentation files (the "Software"), to deal
  5. // in the Software without restriction, including without limitation the rights
  6. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. // copies of the Software, and to permit persons to whom the Software is
  8. // furnished to do so, subject to the following conditions:
  9. //
  10. // The above copyright notice and this permission notice shall be included in
  11. // all copies or substantial portions of the Software.
  12. //
  13. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  19. // THE SOFTWARE.
  20. //
  21. #include "../Precompiled.h"
  22. #include "../Core/Context.h"
  23. #include "../Atomic2D/AnimatedSprite2D.h"
  24. #include "../Atomic2D/AnimationSet2D.h"
  25. #include "../Atomic2D/CollisionBox2D.h"
  26. #include "../Atomic2D/CollisionChain2D.h"
  27. #include "../Atomic2D/CollisionCircle2D.h"
  28. #include "../Atomic2D/CollisionEdge2D.h"
  29. #include "../Atomic2D/CollisionPolygon2D.h"
  30. #include "../Atomic2D/Constraint2D.h"
  31. #include "../Atomic2D/ConstraintDistance2D.h"
  32. #include "../Atomic2D/ConstraintFriction2D.h"
  33. #include "../Atomic2D/ConstraintGear2D.h"
  34. #include "../Atomic2D/ConstraintMotor2D.h"
  35. #include "../Atomic2D/ConstraintMouse2D.h"
  36. #include "../Atomic2D/ConstraintPrismatic2D.h"
  37. #include "../Atomic2D/ConstraintPulley2D.h"
  38. #include "../Atomic2D/ConstraintRevolute2D.h"
  39. #include "../Atomic2D/ConstraintRope2D.h"
  40. #include "../Atomic2D/ConstraintWeld2D.h"
  41. #include "../Atomic2D/ConstraintWheel2D.h"
  42. #include "../Atomic2D/ParticleEffect2D.h"
  43. #include "../Atomic2D/ParticleEmitter2D.h"
  44. #include "../Atomic2D/PhysicsWorld2D.h"
  45. #include "../Atomic2D/Renderer2D.h"
  46. #include "../Atomic2D/RigidBody2D.h"
  47. #include "../Atomic2D/Sprite2D.h"
  48. #include "../Atomic2D/SpriteSheet2D.h"
  49. #include "../Atomic2D/TileMap2D.h"
  50. #include "../Atomic2D/TileMapLayer2D.h"
  51. #include "../Atomic2D/TmxFile2D.h"
  52. // ATOMIC BEGIN
  53. #include "../Atomic2D/Light2D.h"
  54. // ATOMIC END
  55. #include "../DebugNew.h"
  56. namespace Atomic
  57. {
  58. const char* ATOMIC2D_CATEGORY = "Atomic2D";
  59. void RegisterAtomic2DLibrary(Context* context)
  60. {
  61. Renderer2D::RegisterObject(context);
  62. Sprite2D::RegisterObject(context);
  63. SpriteSheet2D::RegisterObject(context);
  64. // Must register objects from base to derived order
  65. Drawable2D::RegisterObject(context);
  66. StaticSprite2D::RegisterObject(context);
  67. AnimationSet2D::RegisterObject(context);
  68. AnimatedSprite2D::RegisterObject(context);
  69. ParticleEffect2D::RegisterObject(context);
  70. ParticleEmitter2D::RegisterObject(context);
  71. TmxFile2D::RegisterObject(context);
  72. TileMap2D::RegisterObject(context);
  73. TileMapLayer2D::RegisterObject(context);
  74. PhysicsWorld2D::RegisterObject(context);
  75. RigidBody2D::RegisterObject(context);
  76. CollisionShape2D::RegisterObject(context);
  77. CollisionBox2D::RegisterObject(context);
  78. CollisionChain2D::RegisterObject(context);
  79. CollisionCircle2D::RegisterObject(context);
  80. CollisionEdge2D::RegisterObject(context);
  81. CollisionPolygon2D::RegisterObject(context);
  82. Constraint2D::RegisterObject(context);
  83. ConstraintDistance2D::RegisterObject(context);
  84. ConstraintFriction2D::RegisterObject(context);
  85. ConstraintGear2D::RegisterObject(context);
  86. ConstraintMotor2D::RegisterObject(context);
  87. ConstraintMouse2D::RegisterObject(context);
  88. ConstraintPrismatic2D::RegisterObject(context);
  89. ConstraintPulley2D::RegisterObject(context);
  90. ConstraintRevolute2D::RegisterObject(context);
  91. ConstraintRope2D::RegisterObject(context);
  92. ConstraintWeld2D::RegisterObject(context);
  93. ConstraintWheel2D::RegisterObject(context);
  94. // ATOMIC BEGIN
  95. Light2DGroup::RegisterObject(context);
  96. Light2D::RegisterObject(context);
  97. DirectionalLight2D::RegisterObject(context);
  98. PositionalLight2D::RegisterObject(context);
  99. PointLight2D::RegisterObject(context);
  100. // ATOMIC END
  101. }
  102. }