aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Minecraft.World.cpp
blob: 304954438a6a7e864fb15f63ecf94ce3c667e05a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
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();
}