public static void Initialize()
        {
            if (ObjectFinder.Self.GlueProject == null)
            {
                ExposedVariableManager.Initialize();

                ObjectFinder.Self.GlueProject = new FlatRedBall.Glue.SaveClasses.GlueProjectSave();

                AvailableAssetTypes.Self.Initialize(FileManager.RelativeDirectory);


                // Perform a partial initialization of FRB:
                FlatRedBallServices.InitializeCommandLine();
                //SpriteManager.Initialize();

                SpriteManager.Camera.LeftDestination   = 0;
                SpriteManager.Camera.RightDestination  = 800;
                SpriteManager.Camera.TopDestination    = 0;
                SpriteManager.Camera.BottomDestination = 640;


                // Do this after inintializing FlatRedBall
                GluxManager.ContentDirectory   = FileManager.RelativeDirectory + "Content\\";
                GluxManager.ContentManagerName = "ContentManagerName";

                ScriptParsingPlugin.Self.StartUp();
            }
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            FlatRedBallServices.InitializeCommandLine(null);

            SpriteManager.Cameras.Add(new Camera("test", 800, 600));
            System.IntPtr ptr = new IntPtr();
            InputManager.Initialize(ptr);
            GuiManager.Initialize((Texture2D)null, new Cursor(SpriteManager.Camera));
            TextManager.Initialize(null);



            bool succeeded = false;

            try
            {
                TestFramework.RunTests();
                succeeded = true;
            }

            catch (Exception e)
            {
                succeeded = false;
                System.Console.WriteLine("Error:\n" + e.ToString());
            }


            if (succeeded)
            {
                System.Console.WriteLine("All tests passed!");
            }

            System.Console.ReadLine();
        }