LeviLamina
Loading...
Searching...
No Matches
Objective.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
7
8// auto generated forward declare list
9// clang-format off
10class CompoundTag;
12class Scoreboard;
13struct ScoreInfo;
14struct ScoreboardId;
15// clang-format on
16
17class Objective : public ::Bedrock::EnableNonOwnerReferences {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ScoreboardId, int>> mScores;
22 ::ll::TypedStorage<8, 32, ::std::string const> mName;
23 ::ll::TypedStorage<8, 32, ::std::string> mDisplayName;
24 ::ll::TypedStorage<8, 8, ::ObjectiveCriteria const&> mCriteria;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 Objective& operator=(Objective const&);
30 Objective(Objective const&);
31 Objective();
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual ~Objective() /*override*/;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI Objective(::std::string const& name, ::ObjectiveCriteria const& criteria);
43
44 MCAPI ::ScoreInfo getPlayerScore(::ScoreboardId const& id) const;
45 // NOLINTEND
46
47public:
48 // static functions
49 // NOLINTBEGIN
50 MCAPI static ::std::unique_ptr<::Objective> deserialize(::CompoundTag const& dataTag, ::Scoreboard& owner);
51
52 MCAPI static ::std::unique_ptr<::CompoundTag> serialize(::Objective const& toSave);
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCAPI void* $ctor(::std::string const& name, ::ObjectiveCriteria const& criteria);
59 // NOLINTEND
60
61public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCAPI void $dtor();
65 // NOLINTEND
66
67public:
68 // vftables
69 // NOLINTBEGIN
70 MCNAPI static void** $vftable();
71 // NOLINTEND
72};
Definition EnableNonOwnerReferences.h:7
Definition CompoundTag.h:23
Definition ObjectiveCriteria.h:13
static MCAPI void ** $vftable()
Definition Scoreboard.h:34
Definition ScoreInfo.h:10
Definition ScoreboardId.h:11