Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ScriptScoreboard.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/script_core/lifetime_registry/scripting/StrongTypedObjectHandle.h"
7#include "mc/deps/script_core/lifetime_registry/scripting/WeakHandleFromThis.h"
8#include "mc/deps/script_core/lifetime_registry/scripting/WeakLifetimeScope.h"
9#include "mc/world/scores/ScoreboardId.h"
10
11// auto generated forward declare list
12// clang-format off
14class Level;
15class Objective;
16class Scoreboard;
17namespace ScriptModuleMinecraft { class ScriptActor; }
18namespace ScriptModuleMinecraft { class ScriptScoreboardIdentity; }
19namespace ScriptModuleMinecraft { class ScriptScoreboardListener; }
20namespace ScriptModuleMinecraft { class ScriptScoreboardObjective; }
21namespace Scripting { struct ClassBinding; }
22// clang-format on
23
24namespace ScriptModuleMinecraft {
25
26class ScriptScoreboard : public ::Scripting::WeakHandleFromThis<::ScriptModuleMinecraft::ScriptScoreboard> {
27public:
28 // ScriptScoreboard inner types define
29 using Key = ::Scoreboard const*;
30
31public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<8, 16, ::Scripting::WeakLifetimeScope> mScope;
35 ::ll::TypedStorage<8, 8, ::gsl::not_null<::Scoreboard*>> mScoreboard;
36 ::ll::TypedStorage<8, 8, ::gsl::not_null<::Level*>> mLevel;
37 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScriptModuleMinecraft::ScriptScoreboardListener>> mScoreboardListener;
38 ::ll::TypedStorage<
39 8,
40 64,
41 ::std::unordered_map<
42 ::std::string,
44 mObjectives;
45 ::ll::TypedStorage<
46 8,
47 64,
48 ::std::unordered_map<
51 mIdentities;
52 // NOLINTEND
53
54public:
55 // virtual functions
56 // NOLINTBEGIN
57 virtual ~ScriptScoreboard() = default;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCNAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective>
65
66 MCNAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardIdentity>
68
69 MCNAPI ::std::optional<::ScoreboardId> tryGetScoreboardParticipantScoreboardId(
70 ::std::variant<
73 ::std::string> const& participant
74 ) const;
75 // NOLINTEND
76
77public:
78 // static functions
79 // NOLINTBEGIN
80 MCNAPI static ::Scripting::ClassBinding bind();
81 // NOLINTEND
82};
83
84} // namespace ScriptModuleMinecraft
Definition IdentityDefinition.h:10
Definition Level.h:255
Definition Objective.h:15
Definition Scoreboard.h:32
Definition ScriptActor.h:64
Definition ScriptScoreboardIdentity.h:17
Definition ScriptScoreboardListener.h:18
Definition ScriptScoreboardObjective.h:21
Definition ScriptScoreboard.h:26
MCAPI ::std::optional<::ScoreboardId > tryGetScoreboardParticipantScoreboardId(::std::variant< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardIdentity >, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor >, ::std::string > const &participant) const
MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardIdentity > getOrCreateScoreboardIdentity(::IdentityDefinition const &identity)
static MCAPI ::Scripting::ClassBinding bind()
MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective > _getOrCreateScoreboardObjective(::Objective const &objective)
Definition StrongTypedObjectHandle.h:8
Definition WeakHandleFromThis.h:8
Definition ScoreboardId.h:11
Definition ClassBinding.h:10