diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
| commit | b691c43c44ff180d10e7d4a9afc83b98551ff586 (patch) | |
| tree | 3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.World/Minecraft.World.cpp | |
| parent | def8cb415354ac390b7e89052a50605285f1aca9 (diff) | |
Initial commit
Diffstat (limited to 'Minecraft.World/Minecraft.World.cpp')
| -rw-r--r-- | Minecraft.World/Minecraft.World.cpp | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/Minecraft.World/Minecraft.World.cpp b/Minecraft.World/Minecraft.World.cpp new file mode 100644 index 00000000..30495443 --- /dev/null +++ b/Minecraft.World/Minecraft.World.cpp @@ -0,0 +1,104 @@ +#include "stdafx.h" + +#include "Packet.h" +#include "MaterialColor.h" +#include "Material.h" +#include "Tile.h" +#include "HatchetItem.h" +#include "PickaxeItem.h" +#include "ShovelItem.h" +#include "BlockReplacements.h" +#include "Biome.h" +#include "Item.h" +#include "FurnaceRecipes.h" +#include "Recipes.h" +#include "Stats.h" +#include "Achievements.h" +#include "Skeleton.h" +#include "PigZombie.h" +#include "TileEntity.h" +#include "EntityIO.h" +#include "SharedConstants.h" +#include "MobCategory.h" +#include "LevelChunk.h" +#include "MineShaftPieces.h" +#include "StrongholdFeature.h" +#include "VillageFeature.h" +#include "LevelType.h" +#include "EnderMan.h" +#include "PotionBrewing.h" +#include "Enchantment.h" +#include "VillagePieces.h" +#include "RandomScatteredLargeFeature.h" + +#include "Minecraft.World.h" +#include "..\Minecraft.Client\ServerLevel.h" +#include "SparseLightStorage.h" +#include "SparseDataStorage.h" +#include "McRegionChunkStorage.h" +#include "Villager.h" +#include "LevelSettings.h" + +#ifdef _DURANGO +#include "DurangoStats.h" +#else +#include "CommonStats.h" +#endif + +void MinecraftWorld_RunStaticCtors() +{ + // The ordering of these static ctors can be important. If they are within statement blocks then + // DO NOT CHANGE the ordering - 4J Stu + + Packet::staticCtor(); + + { + MaterialColor::staticCtor(); + Material::staticCtor(); + Tile::staticCtor(); + HatchetItem::staticCtor(); + PickaxeItem::staticCtor(); + ShovelItem::staticCtor(); + BlockReplacements::staticCtor(); + Biome::staticCtor(); + Item::staticCtor(); + FurnaceRecipes::staticCtor(); + Recipes::staticCtor(); +#ifdef _DURANGO + GenericStats::setInstance(new DurangoStats()); +#else + GenericStats::setInstance(new CommonStats()); + Stats::staticCtor(); +#endif + //Achievements::staticCtor(); // 4J Stu - This is now called from within the Stats::staticCtor() + Skeleton::staticCtor(); + PigZombie::staticCtor(); + TileEntity::staticCtor(); + EntityIO::staticCtor(); + MobCategory::staticCtor(); + + Item::staticInit(); + LevelChunk::staticCtor(); + + LevelType::staticCtor(); + + MineShaftPieces::staticCtor(); + StrongholdFeature::staticCtor(); + VillagePieces::Smithy::staticCtor(); + VillageFeature::staticCtor(); + RandomScatteredLargeFeature::staticCtor(); + } + EnderMan::staticCtor(); + PotionBrewing::staticCtor(); + Enchantment::staticCtor(); + + SharedConstants::staticCtor(); + + ServerLevel::staticCtor(); + SparseLightStorage::staticCtor(); + CompressedTileStorage::staticCtor(); + SparseDataStorage::staticCtor(); + McRegionChunkStorage::staticCtor(); + Villager::staticCtor(); + GameType::staticCtor(); +} |
