LeviLamina
Loading...
Searching...
No Matches
PathUtility.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/cereal/schema/dynamic/DynamicValue.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Bedrock::DDUI::PathUtility { struct PathQueryError; }
11namespace cereal { class DynamicValue; }
12// clang-format on
13
14namespace Bedrock::DDUI::PathUtility {
15// functions
16// NOLINTBEGIN
17MCAPI char const* getTypeString(::cereal::DynamicValue::Type const& type);
18
19MCAPI ::nonstd::
20 expected<::std::vector<::std::variant<::std::string, uint>>, ::Bedrock::DDUI::PathUtility::PathQueryError>
21 parsePath(::std::string const& wholePath);
22
23MCAPI ::nonstd::expected<void, ::Bedrock::DDUI::PathUtility::PathQueryError> setPathOnDataStoreObject(
24 ::cereal::DynamicValue& originalObject,
25 ::std::string const& path,
26 ::cereal::DynamicValue const& newData,
27 ::std::string const& dataStoreName,
28 ::std::string const& propertyName
29);
30
31MCAPI ::nonstd::expected<void, ::Bedrock::DDUI::PathUtility::PathQueryError> setPathOnDataStoreObject(
32 ::cereal::DynamicValue& originalObject,
33 ::std::string const& path,
34 ::std::variant<double, bool, ::std::string> const& newData,
35 ::std::string const& dataStoreName,
36 ::std::string const& propertyName
37);
38
39MCAPI ::std::optional<::cereal::DynamicValue> stringToDynamicValue(::std::string const& s);
40// NOLINTEND
41
42} // namespace Bedrock::DDUI::PathUtility
Definition DynamicValue.h:12
Definition PathQueryError.h:7