38 ::ll::TypedStorage<8, 8, ::CommandSoftEnumRegistry> mRegistry;
39 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::DisplayObjective>> mDisplayObjectives;
40 ::ll::TypedStorage<8, 256, ::IdentityDictionary> mIdentityDict;
41 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ScoreboardId, ::ScoreboardIdentityRef>> mIdentityRefs;
42 ::ll::TypedStorage<1, 1, bool> mShouldUpdateUI;
43 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::unique_ptr<::Objective>>> mObjectives;
44 ::ll::TypedStorage<8, 64, ::std::unordered_map<uint64, ::Bedrock::NonOwnerPointer<::Objective>>>
45 mObjectivesHashLookup;
46 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::unique_ptr<::ObjectiveCriteria>>> mCriteria;
47 ::ll::TypedStorage<8, 96, ::ScoreboardEventCoordinator> mScoreboardEventCoordinator;
48 ::ll::TypedStorage<8, 72, ::PlayerScoreboardEventListener> mPlayerListener;
56 LLAPI
int modifyPlayerScore(
57 ScoreboardOperationResult& result,
61 PlayerScoreSetFunction action
67 virtual ~Scoreboard();
69 virtual ::DisplayObjective
const* setDisplayObjective(
70 ::std::string
const& displaySlotName,
72 ::ObjectiveSortOrder
const order
75 virtual ::Objective* clearDisplayObjective(::std::string
const& displaySlotName);
77 virtual ::ScoreboardId
const& createScoreboardId(
::Player const& player);
79 virtual ::ScoreboardId
const& createScoreboardId(
::Actor const& entity);
81 virtual ::ScoreboardId
const& createScoreboardId(::std::string
const& fakePlayer);
83 virtual void onObjectiveAdded(
::Objective const& objective);
85 virtual void onObjectiveRemoved(
::Objective& objective);
91 virtual void onPlayerJoined(
::Player const& player);
99 virtual void writeToLevelStorage();
101 virtual bool isClientSide()
const;
110 addObjective(::std::string
const& name, ::std::string
const& displayName,
::ObjectiveCriteria const& criteria);
112 MCAPI
void addScoreListener(
::Player& player, ::std::string
const& objective);
114 MCAPI
int applyPlayerOperation(
115 ::ScoreboardOperationResult& result,
116 ::std::vector<::ScoreboardId>& sourceErrorIds,
119 ::std::vector<::ScoreboardId>& selector,
121 ::CommandOperator opCode
125 MCAPI
bool clearScoreboardIdentity(
::ScoreboardId const& scoreboardId);
128 MCAPI ::ObjectiveCriteria
const&
129 createObjectiveCriteria(::std::string
const& name,
bool readOnly, ::ObjectiveRenderType renderType);
131 MCAPI ::ObjectiveCriteria* getCriteria(::std::string
const& criteriaName)
const;
133 MCAPI ::std::vector<::PlayerScore> getDisplayInfoFiltered(::std::string
const& displaySlot)
const;
136 MCAPI ::std::vector<::PlayerScore> getDisplayInfoSorted(
137 ::std::string
const& displaySlot,
138 ::std::function<
void(::ObjectiveSortOrder, ::std::vector<::PlayerScore>&)> sortMethod
142 MCAPI ::DisplayObjective
const* getDisplayObjective(::std::string
const& displaySlotName)
const;
144 MCAPI ::std::vector<::std::string> getDisplayObjectiveSlotNames()
const;
146 MCAPI ::std::vector<::ScoreInfo> getIdScores(
::ScoreboardId const&
id)
const;
148 MCAPI ::Objective* getObjective(::std::string
const& name)
const;
150 MCAPI ::std::vector<::std::string> getObjectiveNames()
const;
152 MCAPI ::std::vector<::Objective const*> getObjectives()
const;
154 MCAPI ::ScoreboardId
const& getScoreboardId(
::Actor const& entity)
const;
156 MCAPI ::ScoreboardId
const& getScoreboardId(::std::string
const& name)
const;
158 MCAPI ::ScoreboardId
const& getScoreboardId(
::Player const& player)
const;
160 MCAPI ::std::vector<::ScoreboardIdentityRef> getScoreboardIdentityRefs()
const;
162 MCAPI ::std::vector<::ScoreboardId> getTrackedIds()
const;
164 MCAPI ::ScoreboardIdentityRef
const& registerScoreboardIdentity(
::CompoundTag const& loadedData);
166 MCAPI ::ScoreboardIdentityRef
const&
169 MCAPI ::ScoreboardIdentityRef
const&
170 registerScoreboardIdentity(
::ScoreboardId const& scoreboardId, ::std::string
const& name);
172 MCAPI ::ScoreboardIdentityRef
const&
175 MCAPI
bool removeObjective(
::Objective* objective);
177 MCAPI
void removeScoreListener(
::Player const& player, ::std::string
const& objective);
187 MCAPI static ::std::string
const& DEFAULT_CRITERIA();
189 MCAPI static ::std::string
const& DISPLAY_SLOT_BELOWNAME();
191 MCAPI static ::std::string
const& DISPLAY_SLOT_LIST();
193 MCAPI static ::std::string
const& DISPLAY_SLOT_SIDEBAR();
211 MCAPI ::DisplayObjective
const* $setDisplayObjective(
212 ::std::string
const& displaySlotName,
214 ::ObjectiveSortOrder
const order
217 MCAPI ::Objective* $clearDisplayObjective(::std::string
const& displaySlotName);
219 MCFOLD ::ScoreboardId
const& $createScoreboardId(
::Player const& player);
221 MCFOLD ::ScoreboardId
const& $createScoreboardId(
::Actor const& entity);
223 MCFOLD ::ScoreboardId
const& $createScoreboardId(::std::string
const& fakePlayer);
225 MCAPI
void $onObjectiveAdded(
::Objective const& objective);
227 MCAPI
void $onObjectiveRemoved(
::Objective& objective);
233 MCFOLD
void $onPlayerJoined(
::Player const& player);
241 MCFOLD
void $writeToLevelStorage();
243 MCFOLD
bool $isClientSide()
const;
251 MCAPI
static void** $vftable();