CSModuleWriter.h 907 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 CSModuleWriter : public JSBModuleWriter
  15. {
  16. public:
  17. CSModuleWriter(JSBModule* module);
  18. void GenerateSource();
  19. void GenerateNativeSource();
  20. void GenerateManagedSource();
  21. private:
  22. String GetManagedPrimitiveType(JSBPrimitiveType* ptype);
  23. void GenerateManagedModuleClass(String& sourceOut);
  24. void GenerateManagedClasses(String& source);
  25. void GenerateManagedEnumsAndConstants(String& source);
  26. void WriteIncludes(String& source);
  27. };
  28. }