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
47 MCAPI bool hasScore(::ScoreboardId const& id) const;
48 // NOLINTEND
49
50public:
51 // static functions
52 // NOLINTBEGIN
53 MCAPI static ::std::unique_ptr<::Objective> deserialize(::CompoundTag const& dataTag, ::Scoreboard& owner);
54
55 MCAPI static ::std::unique_ptr<::CompoundTag> serialize(::Objective const& toSave);
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCAPI void* $ctor(::std::string const& name, ::ObjectiveCriteria const& criteria);
62 // NOLINTEND
63
64public:
65 // destructor thunk
66 // NOLINTBEGIN
67 MCAPI void $dtor();
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCNAPI static void** $vftable();
74 // NOLINTEND
75};
Definition EnableNonOwnerReferences.h:7
Definition CompoundTag.h:13
Definition ObjectiveCriteria.h:13
Definition Objective.h:17
static MCAPI void ** $vftable()
Definition Scoreboard.h:32
Definition ScoreInfo.h:10
Definition ScoreboardId.h:10
Definition serialize.h:11