Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ServerScoreboard Class Reference
Inheritance diagram for ServerScoreboard:

Classes

struct  unit_test_ctor_t

Public Member Functions

virtual void onObjectiveAdded (::Objective const &objective)
virtual void onObjectiveRemoved (::Objective &objective)
virtual void onScoreChanged (::ScoreboardId const &id, ::Objective const &obj)
virtual void onPlayerScoreRemoved (::ScoreboardId const &id, ::Objective const &objective)
virtual void setPacketSender (::PacketSender *sender)
virtual::DisplayObjective const * setDisplayObjective (::std::string const &displaySlotName, ::Objective const &objective, ::ObjectiveSortOrder const order)
virtual::Objective * clearDisplayObjective (::std::string const &displaySlotName)
virtual void onPlayerJoined (::Player const &player)
virtual void onPlayerIdentityUpdated (::PlayerScoreboardId const &playerId)
virtual void tick ()
virtual::ScoreboardId const & createScoreboardId (::Player const &player)
virtual::ScoreboardId const & createScoreboardId (::Actor const &entity)
virtual::ScoreboardId const & createScoreboardId (::std::string const &name)
virtual void writeToLevelStorage ()
virtual bool isClientSide () const
MCAPI ServerScoreboard (::CommandSoftEnumRegistry registry, ::LevelStorage *levelStorage, ::Bedrock::NotNullNonOwnerPtr<::GameplayUserManager > gameplayUserManager)
MCAPI void _clearAllScoreTagsForObjective (::std::string const &displaySlotName, ::DisplayObjective const &displayObjective)
MCAPI void _onGameplayUserRemoved (::EntityContext &entity)
MCAPI void _onRemoveActorEntityReferences (::Actor &actor)
MCAPI void _onSaveEvent (::LevelStorage &)
MCAPI ::std::variant<::RemoveScore, ::ChangePlayerScore, ::ChangeEntityScore, ::ChangeFakePlayerScore > _unpackIdentityDefToScorePacket (::ScoreboardIdentityRef const &identityDef, ::std::string const &objName, int score)
MCAPI void _updateScoreTag (::ScoreboardId const &scoreboardId, bool assertOnFakePlayer)
MCAPI void initializeWithLevelStorageManagerConnector (::ILevelStorageManagerConnector &levelStorageManagerConnector)
MCAPI void intializeWithActorManager (::IActorManagerConnector &actorManagerConnector)
MCAPI void * $ctor (::CommandSoftEnumRegistry registry, ::LevelStorage *levelStorage, ::Bedrock::NotNullNonOwnerPtr<::GameplayUserManager > gameplayUserManager)
MCAPI void $onObjectiveAdded (::Objective const &objective)
MCAPI void $onObjectiveRemoved (::Objective &objective)
MCAPI void $onScoreChanged (::ScoreboardId const &id, ::Objective const &obj)
MCAPI void $onPlayerScoreRemoved (::ScoreboardId const &id, ::Objective const &objective)
MCAPI void $setPacketSender (::PacketSender *sender)
MCAPI::DisplayObjective const * $setDisplayObjective (::std::string const &displaySlotName, ::Objective const &objective, ::ObjectiveSortOrder const order)
MCAPI::Objective * $clearDisplayObjective (::std::string const &displaySlotName)
MCAPI void $onPlayerJoined (::Player const &player)
MCAPI void $onPlayerIdentityUpdated (::PlayerScoreboardId const &playerId)
MCAPI void $tick ()
MCAPI::ScoreboardId const & $createScoreboardId (::Player const &player)
MCAPI::ScoreboardId const & $createScoreboardId (::Actor const &entity)
MCAPI::ScoreboardId const & $createScoreboardId (::std::string const &name)
MCAPI void $writeToLevelStorage ()
MCAPI bool $isClientSide () const
LLAPI int modifyPlayerScore (ScoreboardOperationResult &result, ScoreboardId const &id, Objective &objective, int scoreValue, PlayerScoreSetFunction action)
LLNDAPI ScoreboardId getId (PlayerScoreboardId const &playerId) const
std::vector<::Objective const * > getObjectives () const
LLAPI bool resetPlayerScore (::ScoreboardId const &id, ::Objective &objective)
MCAPI void resetPlayerScore (::ScoreboardId const &id)
MCAPI::Objective * addObjective (::std::string const &name, ::std::string const &displayName, ::ObjectiveCriteria const &criteria)
MCAPI int applyPlayerOperation (::ScoreboardOperationResult &result, ::std::vector<::ScoreboardId > &sourceErrorIds, ::ScoreboardId const &target, ::Objective &targetObjective, ::std::vector<::ScoreboardId > &selector, ::Objective &objective, ::CommandOperator opCode)
MCAPI::ObjectiveCriteria * getCriteria (::std::string const &criteriaName) const
MCAPI ::std::vector<::PlayerScore > getDisplayInfoFiltered (::std::string const &displaySlot) const
MCAPI::DisplayObjective const * getDisplayObjective (::std::string const &displaySlotName) const
MCAPI ::std::vector<::std::string > getDisplayObjectiveSlotNames () const
MCAPI::Objective * getObjective (::std::string const &name) const
MCAPI::ScoreboardId const & getScoreboardId (::Actor const &entity) const
MCAPI::ScoreboardId const & getScoreboardId (::ActorUniqueID const &entityId) const
MCAPI::ScoreboardId const & getScoreboardId (::std::string const &name) const
MCAPI ::std::vector<::ScoreboardId > getTrackedIds () const
MCAPI::ScoreboardIdentityRef const & registerScoreboardIdentity (::ScoreboardId const &scoreboardId, ::PlayerScoreboardId const &playerId)
MCAPI bool removeObjective (::Objective *objective)
MCAPI void removeScoreListener (::Player const &player, ::std::string const &objective)
MCAPI ::std::optional<::ScoreInfo > tryGetIdScore (::ScoreboardId const &id, uint64 const &objectiveHash) const
MCAPI void * $ctor (::CommandSoftEnumRegistry registry)

Static Public Member Functions

static MCAPI ::std::string const & DEFAULT_CRITERIA ()
static MCAPI ::std::string const & DISPLAY_SLOT_BELOWNAME ()
static MCAPI ::std::string const & DISPLAY_SLOT_LIST ()
static MCAPI ::std::string const & DISPLAY_SLOT_SIDEBAR ()
static MCAPI char const *& OBJECTIVES_ENUM ()

Public Attributes

::ll::TypedStorage< 8, 8, ::std::unique_ptr<::BasicTimer > > mSaveTimer
::ll::TypedStorage< 8, 8, ::LevelStorage * > mLevelStorage
::ll::TypedStorage< 1, 1, bool > mIsDirty
::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::GameplayUserManager > const > mGameplayUserManager
::ll::TypedStorage< 8, 24, ::std::vector<::Objective const * > > mTrackedObjectives
::ll::TypedStorage< 8, 8, ::PacketSender * > mPacketSender
::ll::TypedStorage< 8, 16, ::ScoreboardId > mLastUniqueSBID
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mOnSaveSubscription
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mOnLevelStorageManagerStartLeaveGameSubscription
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mOnRemoveActorEntityReferencesSubscription
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mOnGameplayUserRemovedSubscription
::ll::TypedStorage< 8, 8, ::CommandSoftEnumRegistry > mRegistry
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::DisplayObjective > > mDisplayObjectives
::ll::TypedStorage< 8, 256, ::IdentityDictionary > mIdentityDict
::ll::TypedStorage< 8, 64, ::std::unordered_map<::ScoreboardId, ::ScoreboardIdentityRef > > mIdentityRefs
::ll::TypedStorage< 1, 1, bool > mShouldUpdateUI
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::std::unique_ptr<::Objective > > > mObjectives
::ll::TypedStorage< 8, 64, ::std::unordered_map< uint64, ::Bedrock::NonOwnerPointer<::Objective > > > mObjectivesHashLookup
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::std::unique_ptr<::ObjectiveCriteria > > > mCriteria
::ll::TypedStorage< 8, 96, ::ScoreboardEventCoordinator > mScoreboardEventCoordinator
::ll::TypedStorage< 8, 72, ::PlayerScoreboardEventListener > mPlayerListener

Member Function Documentation

◆ onObjectiveAdded()

virtual void ServerScoreboard::onObjectiveAdded ( ::Objective const & objective)
virtual

Reimplemented from Scoreboard.

◆ onObjectiveRemoved()

virtual void ServerScoreboard::onObjectiveRemoved ( ::Objective & objective)
virtual

Reimplemented from Scoreboard.

◆ onScoreChanged()

virtual void ServerScoreboard::onScoreChanged ( ::ScoreboardId const & id,
::Objective const & obj )
virtual

Reimplemented from Scoreboard.

◆ onPlayerScoreRemoved()

virtual void ServerScoreboard::onPlayerScoreRemoved ( ::ScoreboardId const & id,
::Objective const & objective )
virtual

Reimplemented from Scoreboard.

◆ setPacketSender()

virtual void ServerScoreboard::setPacketSender ( ::PacketSender * sender)
virtual

Reimplemented from Scoreboard.

◆ onPlayerJoined()

virtual void ServerScoreboard::onPlayerJoined ( ::Player const & player)
virtual

Reimplemented from Scoreboard.

◆ onPlayerIdentityUpdated()

virtual void ServerScoreboard::onPlayerIdentityUpdated ( ::PlayerScoreboardId const & playerId)
virtual

Reimplemented from Scoreboard.

◆ tick()

virtual void ServerScoreboard::tick ( )
virtual

Reimplemented from Scoreboard.

◆ writeToLevelStorage()

virtual void ServerScoreboard::writeToLevelStorage ( )
virtual

Reimplemented from Scoreboard.

◆ isClientSide()

virtual bool ServerScoreboard::isClientSide ( ) const
virtual

Reimplemented from Scoreboard.

◆ _clearAllScoreTagsForObjective()

MCAPI void ServerScoreboard::_clearAllScoreTagsForObjective ( ::std::string const & displaySlotName,
::DisplayObjective const & displayObjective )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _onGameplayUserRemoved()

MCAPI void ServerScoreboard::_onGameplayUserRemoved ( ::EntityContext & entity)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _onRemoveActorEntityReferences()

MCAPI void ServerScoreboard::_onRemoveActorEntityReferences ( ::Actor & actor)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _onSaveEvent()

MCAPI void ServerScoreboard::_onSaveEvent ( ::LevelStorage & )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _unpackIdentityDefToScorePacket()

MCAPI ::std::variant<::RemoveScore, ::ChangePlayerScore, ::ChangeEntityScore, ::ChangeFakePlayerScore > ServerScoreboard::_unpackIdentityDefToScorePacket ( ::ScoreboardIdentityRef const & identityDef,
::std::string const & objName,
int score )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _updateScoreTag()

MCAPI void ServerScoreboard::_updateScoreTag ( ::ScoreboardId const & scoreboardId,
bool assertOnFakePlayer )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ initializeWithLevelStorageManagerConnector()

MCAPI void ServerScoreboard::initializeWithLevelStorageManagerConnector ( ::ILevelStorageManagerConnector & levelStorageManagerConnector)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ intializeWithActorManager()

MCAPI void ServerScoreboard::intializeWithActorManager ( ::IActorManagerConnector & actorManagerConnector)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onObjectiveAdded()

MCAPI void ServerScoreboard::$onObjectiveAdded ( ::Objective const & objective)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onObjectiveRemoved()

MCAPI void ServerScoreboard::$onObjectiveRemoved ( ::Objective & objective)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onPlayerScoreRemoved()

MCAPI void ServerScoreboard::$onPlayerScoreRemoved ( ::ScoreboardId const & id,
::Objective const & objective )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setPacketSender()

MCAPI void ServerScoreboard::$setPacketSender ( ::PacketSender * sender)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setDisplayObjective()

MCAPI::DisplayObjective const * ServerScoreboard::$setDisplayObjective ( ::std::string const & displaySlotName,
::Objective const & objective,
::ObjectiveSortOrder const order )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $clearDisplayObjective()

MCAPI::Objective * ServerScoreboard::$clearDisplayObjective ( ::std::string const & displaySlotName)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onPlayerJoined()

MCAPI void ServerScoreboard::$onPlayerJoined ( ::Player const & player)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onPlayerIdentityUpdated()

MCAPI void ServerScoreboard::$onPlayerIdentityUpdated ( ::PlayerScoreboardId const & playerId)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $tick()

MCAPI void ServerScoreboard::$tick ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $createScoreboardId() [1/3]

MCAPI::ScoreboardId const & ServerScoreboard::$createScoreboardId ( ::Player const & player)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $createScoreboardId() [2/3]

MCAPI::ScoreboardId const & ServerScoreboard::$createScoreboardId ( ::Actor const & entity)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $createScoreboardId() [3/3]

MCAPI::ScoreboardId const & ServerScoreboard::$createScoreboardId ( ::std::string const & name)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $writeToLevelStorage()

MCAPI void ServerScoreboard::$writeToLevelStorage ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $isClientSide()

MCAPI bool ServerScoreboard::$isClientSide ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ applyPlayerOperation()

MCAPI int Scoreboard::applyPlayerOperation ( ::ScoreboardOperationResult & result,
::std::vector<::ScoreboardId > & sourceErrorIds,
::ScoreboardId const & target,
::Objective & targetObjective,
::std::vector<::ScoreboardId > & selector,
::Objective & objective,
::CommandOperator opCode )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getDisplayInfoFiltered()

MCAPI ::std::vector<::PlayerScore > Scoreboard::getDisplayInfoFiltered ( ::std::string const & displaySlot) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getScoreboardId()

MCAPI::ScoreboardId const & Scoreboard::getScoreboardId ( ::ActorUniqueID const & entityId) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ registerScoreboardIdentity()

MCAPI::ScoreboardIdentityRef const & Scoreboard::registerScoreboardIdentity ( ::ScoreboardId const & scoreboardId,
::PlayerScoreboardId const & playerId )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ removeScoreListener()

MCAPI void Scoreboard::removeScoreListener ( ::Player const & player,
::std::string const & objective )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ DISPLAY_SLOT_BELOWNAME()

MCAPI ::std::string const & Scoreboard::DISPLAY_SLOT_BELOWNAME ( )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ DISPLAY_SLOT_LIST()

MCAPI ::std::string const & Scoreboard::DISPLAY_SLOT_LIST ( )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ DISPLAY_SLOT_SIDEBAR()

MCAPI ::std::string const & Scoreboard::DISPLAY_SLOT_SIDEBAR ( )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ OBJECTIVES_ENUM()

MCAPI char const *& Scoreboard::OBJECTIVES_ENUM ( )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * Scoreboard::$ctor ( ::CommandSoftEnumRegistry registry)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: