LeviLamina
Loading...
Searching...
No Matches
ScriptPluginUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/scripting/ScriptRuntimeType.h"
7
8// auto generated forward declare list
9// clang-format off
10class ScriptPlugin;
11// clang-format on
12
13namespace ScriptPluginUtils {
14// functions
15// NOLINTBEGIN
16MCNAPI ::ScriptRuntimeType GetRuntimeType(::std::string const& runtimeName);
17
18MCNAPI ::ScriptRuntimeType GetRuntimeTypeFromFileExtension(::std::string const& fileExt);
19
20MCNAPI ::std::string JavaScriptModuleNameNormalizer(
21 ::std::string_view baseName,
22 ::std::string const& moduleName,
23 ::std::vector<::std::string> const& knownModuleNames
24);
25
26MCNAPI ::std::string SanitizeRuntimeName(::std::string const& runtimeName);
27
28MCNAPI ::std::vector<::std::string> ValidatePlugin(::ScriptPlugin const& plugin);
29// NOLINTEND
30
31// static variables
32// NOLINTBEGIN
33MCNAPI ::std::string const& BETA_RELEASE();
34
35MCNAPI ::std::string const& INTERNAL_RELEASE();
36
37MCNAPI ::std::string const& JAVA_SCRIPT_RUNTIME_EXTENSION();
38
39MCNAPI ::std::string const& JAVA_SCRIPT_RUNTIME_IDENTIFIER_V1();
40
41MCNAPI ::std::string const& JAVA_SCRIPT_RUNTIME_IDENTIFIER_V2();
42
43MCNAPI ::std::string const& JAVA_SCRIPT_RUNTIME_NAME();
44// NOLINTEND
45
46} // namespace ScriptPluginUtils
Definition ScriptPlugin.h:23