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;
62 virtual ::DisplayObjective
const* setDisplayObjective(
63 ::std::string
const& displaySlotName,
65 ::ObjectiveSortOrder
const order
69 virtual ::Objective* clearDisplayObjective(::std::string
const& displaySlotName);
72 virtual ::ScoreboardId
const& createScoreboardId(
::Player const& player);
75 virtual ::ScoreboardId
const& createScoreboardId(
::Actor const& entity);
78 virtual ::ScoreboardId
const& createScoreboardId(::std::string
const& fakePlayer);
81 virtual void onObjectiveAdded(
::Objective const& objective);
84 virtual void onObjectiveRemoved(
::Objective& objective);
93 virtual void onPlayerJoined(
::Player const& player);
105 virtual void writeToLevelStorage();
108 virtual bool isClientSide()
const;
117 addObjective(::std::string
const& name, ::std::string
const& displayName,
::ObjectiveCriteria const& criteria);
119 MCAPI
void addScoreListener(
::Player& player, ::std::string
const& objective);
121 MCAPI
int applyPlayerOperation(
122 ::ScoreboardOperationResult& result,
123 ::std::vector<::ScoreboardId>& sourceErrorIds,
126 ::std::vector<::ScoreboardId>& selector,
128 ::CommandOperator opCode
131 MCAPI ::ObjectiveCriteria
const&
132 createObjectiveCriteria(::std::string
const& name,
bool readOnly, ::ObjectiveRenderType renderType);
134 MCAPI ::ObjectiveCriteria* getCriteria(::std::string
const& criteriaName)
const;
136 MCAPI ::std::vector<::PlayerScore> getDisplayInfoFiltered(::std::string
const& displaySlot)
const;
138 MCAPI ::DisplayObjective
const* getDisplayObjective(::std::string
const& displaySlotName)
const;
140 MCAPI ::std::vector<::std::string> getDisplayObjectiveSlotNames()
const;
142 MCAPI ::std::vector<::ScoreInfo> getIdScores(
::ScoreboardId const&
id)
const;
144 MCAPI ::Objective* getObjective(::std::string
const& name)
const;
146 MCAPI ::std::vector<::std::string> getObjectiveNames()
const;
148 MCAPI ::std::vector<::Objective const*> getObjectives()
const;
150 MCAPI ::ScoreboardId
const& getScoreboardId(
::Actor const& entity)
const;
152 MCAPI ::ScoreboardId
const& getScoreboardId(::std::string
const& name)
const;
154 MCAPI ::ScoreboardId
const& getScoreboardId(
::Player const& player)
const;
156 MCAPI ::ScoreboardIdentityRef* getScoreboardIdentityRef(
::ScoreboardId const& scoreboardId);
158 MCAPI ::std::vector<::ScoreboardIdentityRef> getScoreboardIdentityRefs()
const;
160 MCAPI ::std::vector<::ScoreboardId> getTrackedIds()
const;
162 MCAPI
int modifyPlayerScore(
163 ::ScoreboardOperationResult& result,
167 ::PlayerScoreSetFunction action
170 MCAPI ::ScoreboardIdentityRef
const& registerScoreboardIdentity(
::CompoundTag const& loadedData);
172 MCAPI ::ScoreboardIdentityRef
const&
175 MCAPI ::ScoreboardIdentityRef
const&
176 registerScoreboardIdentity(
::ScoreboardId const& scoreboardId, ::std::string
const& name);
178 MCAPI ::ScoreboardIdentityRef
const&
181 MCAPI
bool removeObjective(
::Objective* objective);
183 MCAPI
void removeScoreListener(
::Player const& player, ::std::string
const& objective);
193 MCAPI static ::std::string
const& DEFAULT_CRITERIA();
195 MCAPI static ::std::string
const& DISPLAY_SLOT_BELOWNAME();
197 MCAPI static ::std::string
const& DISPLAY_SLOT_LIST();
199 MCAPI static ::std::string
const& DISPLAY_SLOT_SIDEBAR();
201 MCAPI
static char const*& OBJECTIVES_ENUM();
219 MCAPI ::DisplayObjective
const* $setDisplayObjective(
220 ::std::string
const& displaySlotName,
222 ::ObjectiveSortOrder
const order
225 MCAPI ::Objective* $clearDisplayObjective(::std::string
const& displaySlotName);
227 MCFOLD ::ScoreboardId
const& $createScoreboardId(
::Player const& player);
229 MCFOLD ::ScoreboardId
const& $createScoreboardId(
::Actor const& entity);
231 MCFOLD ::ScoreboardId
const& $createScoreboardId(::std::string
const& fakePlayer);
233 MCAPI
void $onObjectiveAdded(
::Objective const& objective);
235 MCAPI
void $onObjectiveRemoved(
::Objective& objective);
241 MCFOLD
void $onPlayerJoined(
::Player const& player);
249 MCFOLD
void $writeToLevelStorage();
251 MCFOLD
bool $isClientSide()
const;