PropertyHandlers.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #include "EditorCommon.h"
  9. #include "PropertyHandlerAnchor.h"
  10. #include "PropertyHandlerChar.h"
  11. #include "PropertyHandlerDirectory.h"
  12. #include "PropertyHandlerEntityIdComboBox.h"
  13. #include "PropertyHandlerLayoutPadding.h"
  14. #include "PropertyHandlerOffset.h"
  15. #include "PropertyHandlerUiParticleColorKeyframe.h"
  16. #include "PropertyHandlerUiParticleFloatKeyframe.h"
  17. #include "PropertyHandlerPivot.h"
  18. #include "PropertyHandlerSprite.h"
  19. #include "PropertyHandlerVec.h"
  20. void PropertyHandlers::Register()
  21. {
  22. // This MUST be done only ONCE.
  23. {
  24. static bool hasBeenDone = false;
  25. if (hasBeenDone)
  26. {
  27. return;
  28. }
  29. hasBeenDone = true;
  30. }
  31. PropertyHandlerAnchor::Register();
  32. PropertyHandlerChar::Register();
  33. PropertyHandlerDirectory::Register();
  34. PropertyHandlerEntityIdComboBox::Register();
  35. PropertyHandlerLayoutPadding::Register();
  36. PropertyHandlerUiParticleColorKeyframe::Register();
  37. PropertyHandlerUiParticleFloatKeyframe::Register();
  38. PropertyHandlerOffset::Register();
  39. PropertyHandlerPivot::Register();
  40. PropertyHandlerSprite::Register();
  41. PropertyHandlerVecRegister();
  42. }