Skip to content

Commit

Permalink
fix: add missing bedrock typeid (#1403)
Browse files Browse the repository at this point in the history
* fix: add missing functions

* fix: add missing functions

* fix: add missing functions

* fix: add missing functions

---------

Co-authored-by: OEOTYAN <58554322+OEOTYAN@users.noreply.github.com>
  • Loading branch information
killcerr and OEOTYAN committed Dec 2, 2023
1 parent a011ce6 commit 6d23a94
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 2 deletions.
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);

0 comments on commit 6d23a94

Please sign in to comment.