public Simulation(Game game, uint seed) : base(game) { m_fogVector = new Vector2(Chunk.SizeInBlocks * ChunkCache.ViewRange, Chunk.SizeInBlocks * (ChunkCache.ViewRange + 4)); m_worldComponents = new List<Renderable>(); m_chunkCache = new ChunkCache(game); m_worldComponents.Add(m_chunkCache); m_worldComponents.Add(new Sky(game, seed)); m_player = new Player(ChunkCache.Blocks, ChunkCache.BlockIndexByWorldPosition); m_worldComponents.Add(m_player); }
public FlyCommand() { m_player = MainEngine.GetEngineInstance().Simulation.Player; }