Refactor API_INJECT_CPP_CODE into API_INJECT_CODE to support code injection in other languages
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include "Engine/Core/Types/StringView.h"
|
||||
#include "Engine/Core/Collections/Array.h"
|
||||
|
||||
API_INJECT_CPP_CODE("#include \"Engine/Platform/Clipboard.h\"");
|
||||
API_INJECT_CODE(cpp, "#include \"Engine/Platform/Clipboard.h\"");
|
||||
|
||||
/// <summary>
|
||||
/// Native platform clipboard service.
|
||||
|
||||
@@ -35,7 +35,7 @@ enum class SpecialFolder
|
||||
Temporary,
|
||||
};
|
||||
|
||||
API_INJECT_CPP_CODE("#include \"Engine/Platform/FileSystem.h\"");
|
||||
API_INJECT_CODE(cpp, "#include \"Engine/Platform/FileSystem.h\"");
|
||||
|
||||
/// <summary>
|
||||
/// Platform implementation of filesystem service.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "Engine/Core/Types/BaseTypes.h"
|
||||
#include "Engine/Core/Types/String.h"
|
||||
|
||||
API_INJECT_CPP_CODE("#include \"Engine/Platform/Network.h\"");
|
||||
API_INJECT_CODE(cpp, "#include \"Engine/Platform/Network.h\"");
|
||||
|
||||
/// <summary>
|
||||
/// Network connection protocol type.
|
||||
|
||||
@@ -124,7 +124,7 @@ enum class ThreadPriority
|
||||
|
||||
extern FLAXENGINE_API const Char* ToString(ThreadPriority value);
|
||||
|
||||
API_INJECT_CPP_CODE("#include \"Engine/Platform/Platform.h\"");
|
||||
API_INJECT_CODE(cpp, "#include \"Engine/Platform/Platform.h\"");
|
||||
|
||||
/// <summary>
|
||||
/// Runtime platform service.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "Engine/Core/Types/String.h"
|
||||
#include "Engine/Scripting/ScriptingObject.h"
|
||||
|
||||
API_INJECT_CPP_CODE("#include \"Engine/Platform/User.h\"");
|
||||
API_INJECT_CODE(cpp, "#include \"Engine/Platform/User.h\"");
|
||||
|
||||
/// <summary>
|
||||
/// Native platform user object.
|
||||
|
||||
@@ -263,7 +263,7 @@ API_ENUM() enum class WindowHitCodes
|
||||
Help = 21,
|
||||
};
|
||||
|
||||
API_INJECT_CPP_CODE("#include \"Engine/Platform/Window.h\"");
|
||||
API_INJECT_CODE(cpp, "#include \"Engine/Platform/Window.h\"");
|
||||
|
||||
/// <summary>
|
||||
/// Native platform window object.
|
||||
|
||||
Reference in New Issue
Block a user