36 ::ll::TypedStorage<8, 8, ::CommandSoftEnumRegistry> mRegistry;
37 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::DisplayObjective>> mDisplayObjectives;
38 ::ll::TypedStorage<8, 256, ::IdentityDictionary> mIdentityDict;
39 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ScoreboardId, ::ScoreboardIdentityRef>> mIdentityRefs;
40 ::ll::TypedStorage<1, 1, bool> mShouldUpdateUI;
41 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::unique_ptr<::Objective>>> mObjectives;
42 ::ll::TypedStorage<8, 64, ::std::unordered_map<uint64, ::Bedrock::NonOwnerPointer<::Objective>>>
43 mObjectivesHashLookup;
44 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::unique_ptr<::ObjectiveCriteria>>> mCriteria;
45 ::ll::TypedStorage<8, 96, ::ScoreboardEventCoordinator> mScoreboardEventCoordinator;
46 ::ll::TypedStorage<8, 72, ::PlayerScoreboardEventListener> mPlayerListener;
60 virtual ::DisplayObjective
const* setDisplayObjective(
61 ::std::string
const& displaySlotName,
63 ::ObjectiveSortOrder
const order
67 virtual ::Objective* clearDisplayObjective(::std::string
const& displaySlotName);
70 virtual ::ScoreboardId
const& createScoreboardId(
::Player const& player);
73 virtual ::ScoreboardId
const& createScoreboardId(
::Actor const& entity);
76 virtual ::ScoreboardId
const& createScoreboardId(::std::string
const& fakePlayer);
79 virtual void onObjectiveAdded(
::Objective const& objective);
82 virtual void onObjectiveRemoved(
::Objective& objective);
91 virtual void onPlayerJoined(
::Player const& player);
103 virtual void writeToLevelStorage();
106 virtual bool isClientSide()
const;
115 addObjective(::std::string
const& name, ::std::string
const& displayName,
::ObjectiveCriteria const& criteria);
117 MCAPI
int applyPlayerOperation(
119 ::std::vector<::ScoreboardId>& sourceErrorIds,
122 ::std::vector<::ScoreboardId>& selector,
124 ::CommandOperator opCode
127 MCAPI
bool clearScoreboardIdentity(
::ScoreboardId const& scoreboardId);
129 MCAPI ::ObjectiveCriteria
const&
130 createObjectiveCriteria(::std::string
const& name,
bool readOnly, ::ObjectiveRenderType renderType);
132 MCAPI ::ObjectiveCriteria* getCriteria(::std::string
const& criteriaName)
const;
134 MCAPI ::std::vector<::PlayerScore> getDisplayInfoFiltered(::std::string
const& displaySlot)
const;
136 MCAPI ::DisplayObjective
const* getDisplayObjective(::std::string
const& displaySlotName)
const;
138 MCAPI ::std::vector<::std::string> getDisplayObjectiveSlotNames()
const;
140 MCAPI ::std::vector<::ScoreInfo> getIdScores(
::ScoreboardId const&
id)
const;
142 MCAPI ::Objective* getObjective(::std::string
const& name)
const;
144 MCAPI ::std::vector<::std::string> getObjectiveNames()
const;
146 MCAPI ::std::vector<::Objective const*> getObjectives()
const;
148 MCAPI ::ScoreboardId
const& getScoreboardId(
::Actor const& entity)
const;
150 MCAPI ::ScoreboardId
const& getScoreboardId(::std::string
const& name)
const;
152 MCAPI ::ScoreboardId
const& getScoreboardId(
::Player const& player)
const;
154 MCAPI ::ScoreboardIdentityRef* getScoreboardIdentityRef(
::ScoreboardId const& scoreboardId);
156 MCAPI ::std::vector<::ScoreboardIdentityRef> getScoreboardIdentityRefs()
const;
158 MCAPI ::std::vector<::ScoreboardId> getTrackedIds()
const;
160 MCAPI
int modifyPlayerScore(
165 ::PlayerScoreSetFunction action
168 MCAPI ::ScoreboardIdentityRef
const& registerScoreboardIdentity(
::CompoundTag const& loadedData);
170 MCAPI ::ScoreboardIdentityRef
const&
171 registerScoreboardIdentity(
::ScoreboardId const& scoreboardId, ::std::string
const& name);
173 MCAPI ::ScoreboardIdentityRef
const&
176 MCAPI
bool removeObjective(
::Objective* objective);
182 MCAPI ::std::optional<::ScoreInfo> tryGetIdScore(
::ScoreboardId const&
id, uint64
const& objectiveHash)
const;
188 MCAPI static ::std::string
const& DEFAULT_CRITERIA();
190 MCAPI static ::std::string
const& DISPLAY_SLOT_BELOWNAME();
192 MCAPI static ::std::string
const& DISPLAY_SLOT_LIST();
194 MCAPI static ::std::string
const& DISPLAY_SLOT_SIDEBAR();
196 MCAPI
static char const*& OBJECTIVES_ENUM();
214 MCAPI ::DisplayObjective
const* $setDisplayObjective(
215 ::std::string
const& displaySlotName,
217 ::ObjectiveSortOrder
const order
220 MCAPI ::Objective* $clearDisplayObjective(::std::string
const& displaySlotName);
222 MCFOLD ::ScoreboardId
const& $createScoreboardId(
::Player const& player);
224 MCFOLD ::ScoreboardId
const& $createScoreboardId(
::Actor const& entity);
226 MCFOLD ::ScoreboardId
const& $createScoreboardId(::std::string
const& fakePlayer);
228 MCAPI
void $onObjectiveAdded(
::Objective const& objective);
230 MCAPI
void $onObjectiveRemoved(
::Objective& objective);
236 MCFOLD
void $onPlayerJoined(
::Player const& player);
244 MCFOLD
void $writeToLevelStorage();
246 MCFOLD
bool $isClientSide()
const;