LeviLamina
Loading...
Searching...
No Matches
MobTelemetry.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace Social::Events {
6
7class MobTelemetry {
8public:
9 // MobTelemetry inner types declare
10 // clang-format off
11 struct MobDeathData;
12 struct MobItemData;
13 struct MobSpawnData;
14 struct nowFunc;
15 // clang-format on
16
17 // MobTelemetry inner types define
18 struct MobDeathData {
19 public:
20 // member variables
21 // NOLINTBEGIN
29 // NOLINTEND
30
31 public:
32 // prevent constructor by default
33 MobDeathData& operator=(MobDeathData const&);
34 MobDeathData(MobDeathData const&);
35 MobDeathData();
36 };
37
38 struct MobItemData {
39 public:
40 // member variables
41 // NOLINTBEGIN
48 // NOLINTEND
49
50 public:
51 // prevent constructor by default
52 MobItemData& operator=(MobItemData const&);
53 MobItemData(MobItemData const&);
54 MobItemData();
55 };
56
57 struct MobSpawnData {
58 public:
59 // member variables
60 // NOLINTBEGIN
69 // NOLINTEND
70
71 public:
72 // prevent constructor by default
73 MobSpawnData& operator=(MobSpawnData const&);
74 MobSpawnData(MobSpawnData const&);
75 MobSpawnData();
76 };
77
78 struct nowFunc {};
79
80public:
81 // member variables
82 // NOLINTBEGIN
89 // NOLINTEND
90
91public:
92 // prevent constructor by default
93 MobTelemetry& operator=(MobTelemetry const&);
94 MobTelemetry(MobTelemetry const&);
95 MobTelemetry();
96
97public:
98 // member functions
99 // NOLINTBEGIN
100 MCNAPI void onMobDied(
101 ::std::string const& nameSpace,
102 ::std::string const& name,
103 ::std::string const& causeOfDeath,
104 bool isTame,
105 bool isBaby,
106 bool hadPassenger
107 );
108 // NOLINTEND
109
110public:
111 // static functions
112 // NOLINTBEGIN
113 MCNAPI static void onMobDroppedItem(
114 ::std::string const& mobNamespace,
115 ::std::string const& mobName,
116 ::std::string const& itemNamespace,
117 ::std::string const& itemName,
118 uint stackSize
119 );
120
121 MCNAPI static void onMobPickedUpItem(
122 ::std::string const& mobNamespace,
123 ::std::string const& mobName,
124 ::std::string const& itemNamespace,
125 ::std::string const& itemName,
126 uint stackSize
127 );
128 // NOLINTEND
129};
130
131} // namespace Social::Events
static MCAPI void onMobPickedUpItem(::std::string const &mobNamespace, ::std::string const &mobName, ::std::string const &itemNamespace, ::std::string const &itemName, uint stackSize)
static MCAPI void onMobDroppedItem(::std::string const &mobNamespace, ::std::string const &mobName, ::std::string const &itemNamespace, ::std::string const &itemName, uint stackSize)
MCAPI void onMobDied(::std::string const &nameSpace, ::std::string const &name, ::std::string const &causeOfDeath, bool isTame, bool isBaby, bool hadPassenger)
Definition MobTelemetry.h:18
Definition MobTelemetry.h:38
Definition MobTelemetry.h:57
Definition MobTelemetry.h:78
Definition Alias.h:14