JSPackageWriter.h 768 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 "../JSBPackageWriter.h"
  10. using namespace Atomic;
  11. namespace ToolCore
  12. {
  13. class JSBPackage;
  14. class JSBClass;
  15. class JSPackageWriter : public JSBPackageWriter
  16. {
  17. public:
  18. JSPackageWriter(JSBPackage* package);
  19. void GenerateSource();
  20. virtual void PostProcess();
  21. private:
  22. void WriteProtoTypeRecursive(String &source, JSBClass* klass, Vector<JSBClass*>& written);
  23. void WriteProtoTypeSetup(String& source);
  24. };
  25. }