JSModuleWriter.h 840 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #pragma once
  8. #include <Atomic/Container/Str.h>
  9. #include "../JSBModuleWriter.h"
  10. using namespace Atomic;
  11. namespace ToolCore
  12. {
  13. class JSBModule;
  14. class JSModuleWriter : public JSBModuleWriter
  15. {
  16. public:
  17. JSModuleWriter(JSBModule* module);
  18. void GenerateSource();
  19. private:
  20. void WriteIncludes(String& source);
  21. void WriteForwardDeclarations(String& source);
  22. void WriteClassDeclaration(String& source);
  23. void WriteClassDefine(String& source);
  24. void WriteModulePreInit(String& source);
  25. void WriteModuleInit(String& source);
  26. };
  27. }