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();
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective>
64 _getOrCreateScoreboardObjective(::Objective const& objective);
65
66 MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardIdentity>
67 getOrCreateScoreboardIdentity(::IdentityDefinition const& identity);
68
69 MCAPI ::std::optional<::ScoreboardId> tryGetScoreboardParticipantScoreboardId(
70 ::std::variant<
73 ::std::string> const& participant
74 ) const;
75 // NOLINTEND
76
77public:
78 // static functions
79 // NOLINTBEGIN
80 MCAPI static ::Scripting::ClassBinding bind();
81 // NOLINTEND
82
83public:
84 // destructor thunk
85 // NOLINTBEGIN
86 MCAPI void $dtor();
87 // NOLINTEND
88};
89
90} // namespace ScriptModuleMinecraft
Definition IdentityDefinition.h:10
Definition Level.h:253
Definition Objective.h:15
Definition Scoreboard.h:32
Definition ScriptActor.h:63
Definition ScriptScoreboardIdentity.h:17
Definition ScriptScoreboardListener.h:18
Definition ScriptScoreboardObjective.h:21
Definition ScriptScoreboard.h:26
Definition StrongTypedObjectHandle.h:8
Definition WeakHandleFromThis.h:8
Definition ScoreboardId.h:11
Definition ClassBinding.h:10