LeviLamina
Loading...
Searching...
No Matches
ScriptScoreboardObjective.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/WeakTypedObjectHandle.h"
8#include "mc/deps/script_core/runtime/scripting/Result_deprecated.h"
9#include "mc/world/scores/PlayerScoreSetFunction.h"
10
11// auto generated forward declare list
12// clang-format off
13class Objective;
14namespace ScriptModuleMinecraft { class ScriptActor; }
15namespace ScriptModuleMinecraft { class ScriptScoreboard; }
16namespace ScriptModuleMinecraft { class ScriptScoreboardIdentity; }
17namespace Scripting { struct ClassBinding; }
18// clang-format on
19
20namespace ScriptModuleMinecraft {
21
22class ScriptScoreboardObjective {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 32, ::Scripting::WeakTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboard>>
27 mScoreboardHandle;
28 ::ll::TypedStorage<8, 32, ::std::string> mObjectiveId;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 ScriptScoreboardObjective();
34
35public:
36 // member functions
37 // NOLINTBEGIN
38 MCAPI ScriptScoreboardObjective(
40 ::std::string const& objectiveId
41 );
42
43 MCAPI ::Scripting::Result_deprecated<int> _modifyScore(
44 ::std::variant<
47 ::std::string>& participant,
48 ::PlayerScoreSetFunction setFunction,
49 int score
50 );
51
52 MCAPI ::Scripting::Result_deprecated<::std::string> getDisplayName() const;
53
54 MCAPI ::Scripting::Result_deprecated<::std::string> getObjectiveId() const;
55
56 MCAPI ::Objective* tryGetObjective() const;
57 // NOLINTEND
58
59public:
60 // static functions
61 // NOLINTBEGIN
62 MCAPI static ::Scripting::ClassBinding bind();
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
68 MCAPI void* $ctor(
70 ::std::string const& objectiveId
71 );
72 // NOLINTEND
73};
74
75} // namespace ScriptModuleMinecraft
Definition Objective.h:17
Definition ScriptActor.h:64
Definition ScriptScoreboardIdentity.h:17
Definition ScriptScoreboard.h:27
Definition StrongTypedObjectHandle.h:8
Definition WeakTypedObjectHandle.h:8
Definition ClassBinding.h:10