LeviLamina
Loading...
Searching...
No Matches
ScriptResultUtil.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/runtime/Result.h"
7
8// auto generated forward declare list
9// clang-format off
10class BlockPos;
11class Vec3;
12namespace Scripting { class ResultAny; }
13namespace gametest { struct GameTestError; }
14// clang-format on
15
16namespace ScriptResultUtil {
17// functions
18// NOLINTBEGIN
19MCAPI ::Scripting::Result<::Vec3, ::gametest::GameTestError>
20GametestResultToScriptingValueResult(::std::variant<::gametest::GameTestError, ::Vec3> const& result);
21
22MCAPI ::Scripting::Result<::Vec3, ::gametest::GameTestError>
23GametestResultToScriptingValueResult(::std::variant<::gametest::GameTestError, ::BlockPos> const& result);
24
25MCAPI ::std::optional<::gametest::GameTestError> ScriptingResultToGameTestResult(::Scripting::ResultAny const& result);
26// NOLINTEND
27
28} // namespace ScriptResultUtil
Definition BlockPos.h:18
Definition ResultAny.h:7
Definition Vec3.h:10