AssetEvents.h 990 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  3. // LICENSE: Atomic Game Engine Editor and Tools EULA
  4. // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
  5. // license information: https://github.com/AtomicGameEngine/AtomicGameEngine
  6. //
  7. #include <Atomic/Core/Object.h>
  8. namespace ToolCore
  9. {
  10. EVENT(E_RESOURCEADDED, ResourceAdded)
  11. {
  12. PARAM(P_GUID, GUID); // string
  13. }
  14. EVENT(E_RESOURCEREMOVED, ResourceRemoved)
  15. {
  16. PARAM(P_GUID, GUID); // string
  17. }
  18. EVENT(E_ASSETIMPORTERROR, AssetImportError)
  19. {
  20. PARAM(P_PATH, Path); // string
  21. PARAM(P_GUID, GUID); // string
  22. PARAM(P_ERROR, Error); // string
  23. }
  24. EVENT(E_ASSETRENAMED, AssetRenamed)
  25. {
  26. PARAM(P_ASSET, Asset); // asset ptr
  27. }
  28. EVENT(E_ASSETMOVED, AssetMoved)
  29. {
  30. PARAM(P_ASSET, Asset); // asset ptr
  31. PARAM(P_OLDPATH, OldPath); // string
  32. }
  33. }