コード例 #1
0
ファイル: Scene.cs プロジェクト: bicheichane/Nez
		public Scene()
		{
			entities = new EntityList( this );
			renderableComponents = new RenderableComponentList();
			content = new NezContentManager();

			var cameraEntity = createEntity( "camera" );
			camera = cameraEntity.addComponent( new Camera() );

			if( Core.entitySystemsEnabled )
				entityProcessors = new EntityProcessorList();

			// setup our resolution policy. we'll commit it in begin
			_resolutionPolicy = defaultSceneResolutionPolicy;
			_designResolutionSize = defaultDesignResolutionSize;

			initialize();
		}