CSBFunctionWriter.h 719 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 CSBFunctionWriter
  15. {
  16. public:
  17. CSBFunctionWriter(JSBFunction* function);
  18. void GenerateSource(String& sourceOut);
  19. private:
  20. void WriteFunction(String& source);
  21. void WriteConstructor(String& source);
  22. void WriteParameterMarshal(String& source);
  23. JSBFunction* function_;
  24. };
  25. }