本文整理汇总了C#中GameData.Start方法的典型用法代码示例。如果您正苦于以下问题:C# GameData.Start方法的具体用法?C# GameData.Start怎么用?C# GameData.Start使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GameData
的用法示例。
在下文中一共展示了GameData.Start方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
public void Start()
{
textColorRenderer = new TextColorRenderer();
textColorRenderer.platform = platform;
language.platform = platform;
language.LoadTranslations();
GameData gamedata = new GameData();
gamedata.Start();
Config3d config3d = new Config3d();
if (platform.IsFastSystem())
{
config3d.viewdistance = 128;
}
else
{
config3d.viewdistance = 32;
}
ITerrainTextures terrainTextures = new ITerrainTextures();
terrainTextures.game = this;
d_TextureAtlasConverter = new TextureAtlasConverter();
d_TerrainTextures = terrainTextures;
FrustumCulling frustumculling = new FrustumCulling();
frustumculling.d_GetCameraMatrix = this.CameraMatrix;
frustumculling.platform = platform;
d_FrustumCulling = frustumculling;
TerrainChunkTesselatorCi terrainchunktesselator = new TerrainChunkTesselatorCi();
d_TerrainChunkTesselator = terrainchunktesselator;
d_Batcher = new MeshBatcher();
d_Batcher.d_FrustumCulling = frustumculling;
d_Batcher.game = this;
d_FrustumCulling = frustumculling;
d_Data = gamedata;
d_DataMonsters = new GameDataMonsters();
d_Config3d = config3d;
ModDrawParticleEffectBlockBreak particle = new ModDrawParticleEffectBlockBreak();
this.particleEffectBlockBreak = particle;
this.d_Data = gamedata;
d_TerrainTextures = terrainTextures;
map.Reset(256, 256, 128);
SunMoonRenderer sunmoonrenderer = new SunMoonRenderer();
d_SunMoonRenderer = sunmoonrenderer;
d_SunMoonRenderer = sunmoonrenderer;
d_Heightmap = new InfiniteMapChunked2d();
d_Heightmap.d_Map = this;
d_Heightmap.Restart();
d_TerrainChunkTesselator = terrainchunktesselator;
terrainchunktesselator.game = this;
Packet_Inventory inventory = new Packet_Inventory();
inventory.RightHand = new Packet_Item[10];
GameDataItemsClient dataItems = new GameDataItemsClient();
dataItems.game = this;
InventoryUtilClient inventoryUtil = new InventoryUtilClient();
d_Inventory = inventory;
d_InventoryUtil = inventoryUtil;
inventoryUtil.d_Inventory = inventory;
inventoryUtil.d_Items = dataItems;
d_Inventory = inventory;
platform.AddOnCrash(OnCrashHandlerLeave.Create(this));
rnd = platform.RandomCreate();
clientmods = new ClientMod[128];
clientmodsCount = 0;
modmanager.game = this;
AddMod(new ModDrawMain());
AddMod(new ModUpdateMain());
AddMod(new ModNetworkProcess());
AddMod(new ModUnloadRendererChunks());
AddMod(new ModAutoCamera());
AddMod(new ModFpsHistoryGraph());
AddMod(new ModWalkSound());
AddMod(new ModFallDamageToPlayer());
AddMod(new ModBlockDamageToPlayer());
AddMod(new ModLoadPlayerTextures());
AddMod(new ModSendPosition());
AddMod(new ModInterpolatePositions());
AddMod(new ModRail());
AddMod(new ModCompass());
AddMod(new ModGrenade());
AddMod(new ModBullet());
AddMod(new ModExpire());
AddMod(new ModReloadAmmo());
AddMod(new ModPush());
if (platform.IsFastSystem())
{
AddMod(new ModSkySphereAnimated());
}
else
{
AddMod(new ModSkySphereStatic());
}
AddMod(sunmoonrenderer);
AddMod(new ModDrawTestModel());
//.........这里部分代码省略.........