Skip to content

Commit

Permalink
fix: fix GameRulesIndex (#1579)
Browse files Browse the repository at this point in the history
* fix: fix GameRulesIndex

* fix: fix GameRulesIndex
  • Loading branch information
KobeBryant114514 authored Oct 9, 2024
1 parent c7c855a commit 45c0cf7
Showing 1 changed file with 44 additions and 37 deletions.
81 changes: 44 additions & 37 deletions src/mc/world/level/storage/GameRules.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,43 +17,50 @@ class GameRules : public ::Bedrock::EnableNonOwnerReferences {
public:
// GameRules inner types define
enum class GameRulesIndex : int {
InvalidGameRule = -1,
CommandBlockOutput = 0x0,
DoDaylightCycle = 0x1,
DoEntityDrops = 0x2,
DoFireTick = 0x3,
DoMobLoot = 0x4,
DoMobSpawning = 0x5,
DoTileDrops = 0x6,
DoWeatherCycle = 0x7,
DrowningDamage = 0x8,
FallDamage = 0x9,
FireDamage = 0xA,
KeepInventory = 0xB,
MobGriefing = 0xC,
PVP = 0xD,
ShowCoordinates = 0xE,
DoNaturalRegeneration = 0xF,
DoTntExplode = 0x10,
SendCommandFeedback = 0x11,
MaxCommandChainLength = 0x12,
DoInsomnia = 0x13,
CommandBlocksEnabled = 0x14,
RandomTickSpeed = 0x15,
DoImmediateRespawn = 0x16,
ShowDeathMessages = 0x17,
FunctionCommandLimit = 0x18,
PlayerSpawnRadius = 0x19,
ShowTags = 0x1A,
FreezeDamage = 0x1B,
RespawnBlocksExplode = 0x1C,
ShowBorderEffect = 0x1D,
VanillaGameRuleCount = 0x1E,
GlobalMute = 0x1E,
AllowDestructiveObjects = 0x1F,
AllowMobs = 0x20,
CodeBuilder = 0x21,
EduGameRuleCount = 0x22,
InvalidGameRule = -1,
CommandBlockOutput = 0x0,
DoDayLightCycle = 0x1,
DoEntityDrops = 0x2,
DoFireTick = 0x3,
RecipesUnlock = 0x4,
DoLimitedCrafting = 0x5,
DoMobLoot = 0x6,
DoMobSpawning = 0x7,
DoTileDrops = 0x8,
DoWeatherCycle = 0x9,
DrowningDamage = 0xA,
FallDamage = 0xB,
FireDamage = 0xC,
KeepInventory = 0xD,
MobGriefing = 0xE,
Pvp = 0xF,
ShowCoordinates = 0x10,
ShowDaysPlayed = 0x11,
NaturalRegeneration = 0x12,
TntExplodes = 0x13,
SendCommandFeedback = 0x14,
MaxCommandChainLength = 0x15,
DoInsomnia = 0x16,
CommandBlocksEnabled = 0x17,
RandomTickSpeed = 0x18,
DoImmediateRespawn = 0x19,
ShowDeathMessages = 0x1A,
FunctionCommandLimit = 0x1B,
SpawnRadius = 0x1C,
ShowTags = 0x1D,
FreezeDamage = 0x1E,
RespawnBlocksExplode = 0x1F,
ShowBorderEffect = 0x20,
ShowRecipeMessages = 0x21,
PlayersSleepingPercentage = 0x22,
ProjectilesCanBreakBlocks = 0x23,
TntExplosionDropDecay = 0x24,
VanillaGameRuleCount = 0x25,
GlobalMute = 0x25,
AllowDestructiveObjects = 0x26,
AllowMobs = 0x27,
CodeBuilder = 0x28,
EduGameRuleCount = 0x29,
};

using GameRuleList = std::vector<class GameRule>;
Expand Down

0 comments on commit 45c0cf7

Please sign in to comment.