CCParticleSystemQuadLoader.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /****************************************************************************
  2. Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
  3. http://www.cocos2d-x.org
  4. Permission is hereby granted, free of charge, to any person obtaining a copy
  5. of this software and associated documentation files (the "Software"), to deal
  6. in the Software without restriction, including without limitation the rights
  7. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. copies of the Software, and to permit persons to whom the Software is
  9. furnished to do so, subject to the following conditions:
  10. The above copyright notice and this permission notice shall be included in
  11. all copies or substantial portions of the Software.
  12. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  14. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  15. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  16. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  17. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  18. THE SOFTWARE.
  19. ****************************************************************************/
  20. #ifndef _CCB_CCPARTICLESYSTEMQUADLOADER_H_
  21. #define _CCB_CCPARTICLESYSTEMQUADLOADER_H_
  22. #include "base/CCRef.h"
  23. #include "2d/CCParticleSystemQuad.h"
  24. #include "editor-support/cocosbuilder/CCNodeLoader.h"
  25. namespace cocosbuilder {
  26. /* Forward declaration. */
  27. class CCBReader;
  28. class CC_DLL ParticleSystemQuadLoader : public NodeLoader {
  29. public:
  30. /**
  31. * @js NA
  32. * @lua NA
  33. */
  34. virtual ~ParticleSystemQuadLoader() {};
  35. /**
  36. * @js NA
  37. * @lua NA
  38. */
  39. CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(cocosbuilder::ParticleSystemQuadLoader, loader);
  40. protected:
  41. /**
  42. * @js NA
  43. * @lua NA
  44. */
  45. CCB_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(cocos2d::ParticleSystemQuad);
  46. /**
  47. * @js NA
  48. * @lua NA
  49. */
  50. virtual void onHandlePropTypeIntegerLabeled(cocos2d::Node * pNode, cocos2d::Node * pParent, const char * pPropertyName, int pIntegerLabeled, CCBReader * ccbReader);
  51. /**
  52. * @js NA
  53. * @lua NA
  54. */
  55. virtual void onHandlePropTypePoint(cocos2d::Node * pNode, cocos2d::Node * pParent, const char * pPropertyName, cocos2d::Vec2 pPoint, CCBReader * ccbReader);
  56. /**
  57. * @js NA
  58. * @lua NA
  59. */
  60. virtual void onHandlePropTypeFloat(cocos2d::Node * pNode, cocos2d::Node * pParent, const char * pPropertyName, float pFloat, CCBReader * ccbReader);
  61. /**
  62. * @js NA
  63. * @lua NA
  64. */
  65. virtual void onHandlePropTypeInteger(cocos2d::Node * pNode, cocos2d::Node * pParent, const char * pPropertyName, int pInteger, CCBReader * ccbReader);
  66. /**
  67. * @js NA
  68. * @lua NA
  69. */
  70. virtual void onHandlePropTypeFloatVar(cocos2d::Node * pNode, cocos2d::Node * pParent, const char * pPropertyName, float * pFloatVar, CCBReader * ccbReader);
  71. /**
  72. * @js NA
  73. * @lua NA
  74. */
  75. virtual void onHandlePropTypeColor4FVar(cocos2d::Node * pNode, cocos2d::Node * pParent, const char * pPropertyName, cocos2d::Color4F * pColor4FVar, CCBReader * ccbReader);
  76. /**
  77. * @js NA
  78. * @lua NA
  79. */
  80. virtual void onHandlePropTypeBlendFunc(cocos2d::Node * pNode, cocos2d::Node * pParent, const char * pPropertyName, cocos2d::BlendFunc pBlendFunc, CCBReader * ccbReader);
  81. /**
  82. * @js NA
  83. * @lua NA
  84. */
  85. virtual void onHandlePropTypeTexture(cocos2d::Node * pNode, cocos2d::Node * pParent, const char * pPropertyName, cocos2d::Texture2D * pTexture2D, CCBReader * ccbReader);
  86. };
  87. }
  88. #endif