CSClassWriter.h 913 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 "../JSBClassWriter.h"
  10. using namespace Atomic;
  11. namespace ToolCore
  12. {
  13. class JSBPackage;
  14. class JSBClass;
  15. class JSBFunction;
  16. class CSClassWriter : public JSBClassWriter
  17. {
  18. public:
  19. CSClassWriter(JSBClass* klass);
  20. void GenerateSource(String& sourceOut);
  21. void GenerateNativeSource(String& sourceOut);
  22. void GenerateManagedSource(String& sourceOut);
  23. private:
  24. bool OmitFunction(JSBFunction* function);
  25. void WriteNativeFunctions(String& source);
  26. void WriteManagedProperties(String& sourceOut);
  27. void WriteManagedFunctions(String& source);
  28. };
  29. }