26class ScoreboardCommand :
public ::Command {
35 enum class Action :
int {
48 enum class Category :
int {
57 ::ll::TypedStorage<8, 8, ::Scoreboard&> mScoreboard;
62 InitProxy& operator=(InitProxy
const&);
63 InitProxy(InitProxy
const&);
83 ::ll::TypedStorage<4, 4, int> mSuccessCount;
84 ::ll::TypedStorage<4, 4, int> mFirstNewScore;
85 ::ll::TypedStorage<8, 32, ::std::string> mFirstSuccess;
104 ::ll::TypedStorage<4, 4, ::ScoreboardCommand::Category> mCategory;
105 ::ll::TypedStorage<4, 4, ::ScoreboardCommand::Action> mAction;
106 ::ll::TypedStorage<8, 32, ::std::string> mObjective;
107 ::ll::TypedStorage<8, 32, ::std::string> mSourceObjective;
108 ::ll::TypedStorage<1, 1, ::ObjectiveSortOrder> mOrder;
109 ::ll::TypedStorage<8, 32, ::std::string> mCriteria;
110 ::ll::TypedStorage<8, 32, ::std::string> mName;
111 ::ll::TypedStorage<8, 32, ::std::string> mDisplayName;
112 ::ll::TypedStorage<8, 200, ::WildcardCommandSelector<::Actor>> mTargets;
113 ::ll::TypedStorage<8, 200, ::WildcardCommandSelector<::Actor>> mSources;
114 ::ll::TypedStorage<1, 1, ::CommandOperator> mOperator;
115 ::ll::TypedStorage<4, 8, ::CommandWildcardInt> mMin;
116 ::ll::TypedStorage<4, 8, ::CommandWildcardInt> mMax;
117 ::ll::TypedStorage<4, 4, int> mRandMin;
118 ::ll::TypedStorage<4, 4, int> mRandMax;
119 ::ll::TypedStorage<4, 4, int> mValue;
120 ::ll::TypedStorage<1, 1, bool> mTargetsSet;
132 MCAPI ScoreboardCommand();
134 MCAPI
void _generateCumulativeOutput(
140 MCAPI ::Objective* _getObjective(
142 ::std::string
const& name,
147 MCAPI ::std::vector<::ScoreboardId> _getScoreboardIdsForSelector(
152 bool shouldCreateMissingId
155 MCAPI
bool _getSelectorResultsForObjective(
156 ::std::vector<::ScoreboardId>& results,
162 bool shouldCreateMissingId
165 MCAPI
void addObjective(
167 ::std::string
const& name,
168 ::std::string
const& criteriaName,
169 ::std::string
const& displayName,
173 MCAPI
void addPlayerScore(
175 ::PlayerScoreSetFunction fn,
178 ::std::function<::std::string
const&(
::ActorUniqueID)>
const& playerNameResolver,
183 MCAPI
bool applyPlayerOperation(
185 ::std::function<::std::string
const&(
::ActorUniqueID)>
const& playerNameResolver,
196 MCAPI
void listPlayers(
199 ::std::function<::std::string
const&(
::ActorUniqueID)>
const& playerNameResolver,
209 MCAPI
void resetPlayer(
213 ::std::function<::std::string
const&(
::ActorUniqueID)>
const& playerNameResolver,
217 MCAPI
void setDisplayObjective(
219 ::std::string
const& displaySlotName,
220 ::std::string
const& objectiveName,
221 ::ObjectiveSortOrder order,
225 MCAPI
bool setPlayerRandomScore(
229 ::std::function<::std::string
const&(
::ActorUniqueID)>
const& playerNameResolver,
234 MCAPI
void testPlayerScore(
237 ::std::function<::std::string
const&(
::ActorUniqueID)>
const& playerNameResolver,
245 MCAPI static ::std::vector<::std::string> _getNonSortableDisplaySlots(
::Scoreboard&);
247 MCAPI static ::std::vector<::std::string> _getSortableDisplaySlots(
::Scoreboard& scoreboard);