LeviLamina
Loading...
Searching...
No Matches
PersistenceItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/string/BasicStackString.h"
8#include "mc/deps/game_refs/EnableGetWeakRef.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace Bedrock::PubSub { class Subscription; }
13namespace cereal { struct ReflectionCtx; }
14// clang-format on
15
16namespace Editor::Services {
17
18class PersistenceItem : public ::EnableGetWeakRef<::Editor::Services::PersistenceItem>,
19 public ::std::enable_shared_from_this<::Editor::Services::PersistenceItem> {
20public:
21 // member variables
22 // NOLINTBEGIN
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 PersistenceItem& operator=(PersistenceItem const&);
34 PersistenceItem(PersistenceItem const&);
35 PersistenceItem();
36
37public:
38 // member functions
39 // NOLINTBEGIN
41 ::std::string const& key,
43 bool replication,
45 );
46
47 MCNAPI ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> _getFilePath();
48
49 MCNAPI ::std::string _loadItem();
50
51 MCNAPI ::std::string const& fetchItemPayload();
52
53 MCNAPI ::std::string const& key() const;
54
55 MCNAPI ::Bedrock::PubSub::Subscription
56 onValueChange(::std::function<void(::Editor::Services::PersistenceItem const&)> callback);
57
58 MCNAPI void save();
59
60 MCNAPI void setValue(::std::string const& value);
61
62 MCNAPI ::std::string const& value() const;
63
65 // NOLINTEND
66
67public:
68 // constructor thunks
69 // NOLINTBEGIN
70 MCNAPI void* $ctor(
71 ::std::string const& key,
73 bool replication,
75 );
76 // NOLINTEND
77
78public:
79 // destructor thunk
80 // NOLINTBEGIN
81 MCNAPI void $dtor();
82 // NOLINTEND
83};
84
85} // namespace Editor::Services
Definition Subscription.h:10
Definition PathBuffer.h:8
Definition PersistenceItem.h:19
MCAPI PersistenceItem(::std::string const &key, ::Core::PathBuffer<::std::string > const &path, bool replication, ::cereal::ReflectionCtx &ctx)
MCAPI::std::string const & fetchItemPayload()
MCAPI::std::string _loadItem()
MCAPI void setValue(::std::string const &value)
MCAPI::std::string const & key() const
MCAPI::std::string const & value() const
MCAPI void * $ctor(::std::string const &key, ::Core::PathBuffer<::std::string > const &path, bool replication, ::cereal::ReflectionCtx &ctx)
MCAPI ::Core::PathBuffer<::Core::BasicStackString< char, 1024 > > _getFilePath()
MCAPI::Bedrock::PubSub::Subscription onValueChange(::std::function< void(::Editor::Services::PersistenceItem const &)> callback)
Definition EnableGetWeakRef.h:6
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14