Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing bedrock typeid #1403

Merged
merged 5 commits into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/mc/entity/utilities/ActorDamageCause.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/deps/core/common/bedrock/typeid_t.h"

enum class ActorDamageCause : int {
None = -1,
Expand Down Expand Up @@ -40,3 +41,5 @@ enum class ActorDamageCause : int {
SoulCampfire = 0x21,
All = 0x22,
};

MCTAPI class Bedrock::typeid_t<CommandRegistry> Bedrock::type_id<class CommandRegistry, enum class ActorDamageCause>();
3 changes: 3 additions & 0 deletions src/mc/entity/utilities/ActorLocation.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/deps/core/common/bedrock/typeid_t.h"

enum class ActorLocation : int {
Feet = 0x0,
Expand All @@ -14,3 +15,5 @@ enum class ActorLocation : int {
Mouth = 0x8,
Count = 0x9,
};

MCTAPI class Bedrock::typeid_t<CommandRegistry> Bedrock::type_id<class CommandRegistry, enum class ActorLocation>();
3 changes: 3 additions & 0 deletions src/mc/enums/AnimationMode.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/deps/core/common/bedrock/typeid_t.h"

enum class AnimationMode : schar {
None = 0x0,
Layers = 0x1,
Blocks = 0x2,
};

MCTAPI class Bedrock::typeid_t<CommandRegistry> Bedrock::type_id<class CommandRegistry, enum class AnimationMode>();
5 changes: 4 additions & 1 deletion src/mc/enums/BlockSlot.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/deps/core/common/bedrock/typeid_t.h"

enum class BlockSlot : int {
None = -1,
Container = 0,
Count = 1,
};
};

MCTAPI class Bedrock::typeid_t<CommandRegistry> Bedrock::type_id<class CommandRegistry, enum class BlockSlot>();
3 changes: 3 additions & 0 deletions src/mc/enums/CameraShakeAction.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/deps/core/common/bedrock/typeid_t.h"

enum class CameraShakeAction {};

MCTAPI class Bedrock::typeid_t<CommandRegistry> Bedrock::type_id<class CommandRegistry, enum class CameraShakeAction>(void);
3 changes: 3 additions & 0 deletions src/mc/enums/CameraShakeType.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/deps/core/common/bedrock/typeid_t.h"

enum class CameraShakeType {};

MCTAPI class Bedrock::typeid_t<CommandRegistry> Bedrock::type_id<class CommandRegistry, enum class CameraShakeType>();
4 changes: 4 additions & 0 deletions src/mc/enums/ClientInputLockCategory.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/deps/core/common/bedrock/typeid_t.h"

enum class ClientInputLockCategory {};

MCTAPI class Bedrock::typeid_t<CommandRegistry>
Bedrock::type_id<class CommandRegistry, enum class ClientInputLockCategory>();
3 changes: 3 additions & 0 deletions src/mc/enums/Difficulty.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/deps/core/common/bedrock/typeid_t.h"

enum class Difficulty : int {
Peaceful = 0x0,
Expand All @@ -10,3 +11,5 @@ enum class Difficulty : int {
Count = 0x4,
Unknown = 0x5,
};

MCTAPI class Bedrock::typeid_t<CommandRegistry> Bedrock::type_id<class CommandRegistry, enum class Difficulty>();
3 changes: 3 additions & 0 deletions src/mc/enums/EquipmentSlot.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/deps/core/common/bedrock/typeid_t.h"

enum class EquipmentSlot : int {
None = 0xFF,
Expand All @@ -23,3 +24,5 @@ enum class EquipmentSlot : int {
Equippable = 0xC,
Count = 0xD,
};

MCTAPI class Bedrock::typeid_t<CommandRegistry> Bedrock::type_id<class CommandRegistry, enum class EquipmentSlot>();
4 changes: 4 additions & 0 deletions src/mc/enums/ObjectiveSortOrder.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/deps/core/common/bedrock/typeid_t.h"

enum class ObjectiveSortOrder : uchar {
Ascending = 0x0,
Descending = 0x1,
};

MCTAPI class Bedrock::typeid_t<CommandRegistry>
Bedrock::type_id<class CommandRegistry, enum class ObjectiveSortOrder>();
6 changes: 5 additions & 1 deletion src/mc/server/commands/CommandCompareOperator.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/deps/core/common/bedrock/typeid_t.h"

enum CommandCompareOperator : char {
Invalid = 0x0,
Expand All @@ -9,4 +10,7 @@ enum CommandCompareOperator : char {
GreaterThan = 0x3,
LessThanEquals = 0x4,
GreaterThanEquals = 0x5,
};
};

MCTAPI class Bedrock::typeid_t<CommandRegistry>
Bedrock::type_id<class CommandRegistry, enum CommandCompareOperator>();
3 changes: 3 additions & 0 deletions src/mc/server/commands/CommandOperator.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/deps/core/common/bedrock/typeid_t.h"

enum class CommandOperator : schar {
Invalid = 0x0,
Expand All @@ -14,3 +15,5 @@ enum class CommandOperator : schar {
MaxEquals = 0x8,
Swap = 0x9,
};

MCTAPI class Bedrock::typeid_t<CommandRegistry> Bedrock::type_id<class CommandRegistry, enum class CommandOperator>();
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#pragma once

#include "mc/_HeaderOutputPredefine.h"
#include "mc/deps/core/common/bedrock/typeid_t.h"

enum class StructureRedstoneSaveMode : schar {
SavesToMemory = 0x0,
SavesToDisk = 0x1,
};

MCTAPI class Bedrock::typeid_t<CommandRegistry>
Bedrock::type_id<class CommandRegistry, enum class StructureRedstoneSaveMode>(void);