Engines/FlatRedBallXNA/CodeGeneration/CodeGenerator/Game1.cs
/// <summary>
/// Allows the game to perform any initialization it needs to before starting to run.
/// This is where it can query for any required services and load any non-graphic
/// related content.  Calling base.Initialize will enumerate through any components
/// and initialize them as well.
/// </summary>
Allows the game to perform any initialization it needs to before starting to run.
This is where it can query for any required services and load any non-graphic
related content.  Calling base.Initialize will enumerate through any components
and initialize them as well.
Allows the game to perform any initialization it needs to before starting to run . This is where it can query for any required services and load any non - graphic related content . Calling base . Initialize will enumerate through any components and initialize them as well .
protected override void Initialize()
        {
            FlatRedBallServices.InitializeFlatRedBall(this, this.graphics);
            GenerationCategories whatToGenerate = GenerationCategories.WindowSaveClasses;
            switch(whatToGenerate)
            {
                case GenerationCategories.WindowSaveClasses:
                    GuiCollectionCodeGenerator.CreateGuiSaveClasses();
                    break;
                case GenerationCategories.CollisionMethods:
                    ShapeCollectionCollisionCodeGenerator.CreateShapeCollectionCollisionFile();
                    break;
                case GenerationCategories.ContentPipeline:
                    ContentPipelineGenerator.CreateContentPipelineFiles();
                    break;
            }
        }
protected override void Initialize ( ) { FlatRedBallServices . InitializeFlatRedBall ( this , this . graphics ) ; GenerationCategories whatToGenerate = GenerationCategories . WindowSaveClasses ; switch ( whatToGenerate ) { case GenerationCategories . WindowSaveClasses : GuiCollectionCodeGenerator . CreateGuiSaveClasses ( ) ; break ; case GenerationCategories . CollisionMethods : ShapeCollectionCollisionCodeGenerator . CreateShapeCollectionCollisionFile ( ) ; break ; case GenerationCategories . ContentPipeline : ContentPipelineGenerator . CreateContentPipelineFiles ( ) ; break ; } }
Allows the game to perform any initialization it needs to before starting to run.
Allows the game to perform any initialization it needs to before starting to run .
//FlatRedBallServices.GraphicsOptions.SetResolution(320, 240); // Uncomment the following line and add your Screen's fully qualified name // if using Screens in your project.  If not, or if you don't know what it means, // just ignore the following line for now. // For more information on Screens see the Screens wiki article on FlatRedBall.com. //Screens.ScreenManager.Start(typeof(CodeGenerator.Screens.TestScreen).FullName);