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