JSBFunctionWriter.h 764 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. using namespace Atomic;
  10. namespace ToolCore
  11. {
  12. class JSBPackage;
  13. class JSBFunction;
  14. class JSBFunctionWriter
  15. {
  16. public:
  17. virtual void GenerateSource(String& sourceOut);
  18. protected:
  19. JSBFunctionWriter(JSBFunction* function);
  20. protected:
  21. virtual void WriteFunction(String& source);
  22. virtual void WriteConstructor(String& source);
  23. virtual void WriteParameterMarshal(String& source);
  24. JSBFunction* function_;
  25. };
  26. }