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
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 // vIndex: 0
37 virtual ~Objective() /*override*/;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI Objective(::std::string const& name, ::ObjectiveCriteria const& criteria);
44
45 MCAPI ::ScoreInfo getPlayerScore(::ScoreboardId const& id) const;
46 // NOLINTEND
47
48public:
49 // static functions
50 // NOLINTBEGIN
51 MCAPI static ::std::unique_ptr<::Objective> deserialize(::CompoundTag const& dataTag, ::Scoreboard& owner);
52
53 MCAPI static ::std::unique_ptr<::CompoundTag> serialize(::Objective const& toSave);
54 // NOLINTEND
55
56public:
57 // constructor thunks
58 // NOLINTBEGIN
59 MCAPI void* $ctor(::std::string const& name, ::ObjectiveCriteria const& criteria);
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCAPI void $dtor();
66 // NOLINTEND
67
68public:
69 // vftables
70 // NOLINTBEGIN
71 MCNAPI static void** $vftable();
72 // NOLINTEND
73};
Definition EnableNonOwnerReferences.h:7
Definition CompoundTag.h:13
Definition ObjectiveCriteria.h:13
Definition Objective.h:17
static MCAPI void ** $vftable()
Definition Scoreboard.h:34
Definition ScoreInfo.h:10
Definition ScoreboardId.h:11
Definition serialize.h:11