JSBFunctionWriter.h 759 B

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