Ejemplo n.º 1
0
        protected GraphicsTestBase()
        {
            CurrentVersion = 0;

            FrameGameSystem = new FrameGameSystem(Services);
            GameSystems.Add(FrameGameSystem);

#if SILICONSTUDIO_PLATFORM_WINDOWS_DESKTOP
            // get build number
            int buildNumber;
            if (ImageTester.ImageTestResultConnection.BuildNumber <= 0 && Int32.TryParse(Environment.GetEnvironmentVariable("PARADOX_BUILD_NUMBER"), out buildNumber))
                ImageTester.ImageTestResultConnection.BuildNumber = buildNumber;

            // get branch name
            if (String.IsNullOrEmpty(ImageTester.ImageTestResultConnection.BranchName))
                ImageTester.ImageTestResultConnection.BranchName = Environment.GetEnvironmentVariable("PARADOX_BRANCH_NAME") ?? "";
#endif
        }
        public GraphicsTestBase()
        {
            isServer             = false;
            saveLocally          = false;
            BaseVersionNumber    = 0;
            CurrentVersionNumber = 0;
            Timeout           = 120000;
            server            = null;
            client            = null;
            serverUp          = false;
            runTests          = false;
            isClientConnected = false;

            onBamboo = Environment.GetEnvironmentVariable("PARADOX_BAMBOO_TEST") != null;
            if (!Int32.TryParse(Environment.GetEnvironmentVariable(@"BAMBOO_BUILD_NUMBER"), out buildNumber))
            {
                buildNumber = 0;
            }

            paradoxSdkDir = Environment.GetEnvironmentVariable(@"ParadoxSdkDir");

            if (onBamboo)
            {
                branchName = Environment.GetEnvironmentVariable("PARADOX_BAMBOO_BRANCH_NAME");
                if (branchName != null)
                {
                    branchName = branchName.Trim();
                }
            }
            else
            {
                branchName = null;
            }

            assemblyNameForAndroid = this.GetType().Assembly.ManifestModule.ScopeName;

            FrameGameSystem         = new FrameGameSystem(this.Services);
            FrameGameSystem.Visible = true;
            FrameGameSystem.Enabled = true;
            this.GameSystems.Add(FrameGameSystem);
        }
Ejemplo n.º 3
0
 protected override void Update(GameTime gameTime)
 {
     if (!isGameInitialized)
     {
         isGameInitialized = true;
         onLoadContentDone.Set();
     }
     else
     {
         // Schedule the draw action
         lock (drawActions)
         {
             if (drawActions.Count > 0)
             {
                 FrameGameSystem.Draw(FrameGameSystem.CurrentFrame + 1, drawActions[0].Run);
                 drawActions.RemoveAt(0);
             }
         }
     }
     base.Update(gameTime);
 }
Ejemplo n.º 4
0
        protected GraphicsTestBase()
        {
            CurrentVersion = 0;

            FrameGameSystem = new FrameGameSystem(Services);
            GameSystems.Add(FrameGameSystem);

#if SILICONSTUDIO_PLATFORM_WINDOWS_DESKTOP
            // get build number
            int buildNumber;
            if (ImageTester.ImageTestResultConnection.BuildNumber <= 0 && Int32.TryParse(Environment.GetEnvironmentVariable("PARADOX_BUILD_NUMBER"), out buildNumber))
            {
                ImageTester.ImageTestResultConnection.BuildNumber = buildNumber;
            }

            // get branch name
            if (String.IsNullOrEmpty(ImageTester.ImageTestResultConnection.BranchName))
            {
                ImageTester.ImageTestResultConnection.BranchName = Environment.GetEnvironmentVariable("PARADOX_BRANCH_NAME") ?? "";
            }
#endif
        }
Ejemplo n.º 5
0
        public GraphicsTestBase()
        {
            isServer = false;
            saveLocally = false;
            BaseVersionNumber = 0;
            CurrentVersionNumber = 0;
            Timeout = 120000;
            server = null;
            client = null;
            serverUp = false;
            runTests = false;
            isClientConnected = false;

            onBamboo = Environment.GetEnvironmentVariable("PARADOX_BAMBOO_TEST") != null;
            if (!Int32.TryParse(Environment.GetEnvironmentVariable(@"BAMBOO_BUILD_NUMBER"), out buildNumber))
                buildNumber = 0;
            
            paradoxSdkDir = Environment.GetEnvironmentVariable(@"ParadoxSdkDir");

            if (onBamboo)
            {
                branchName = Environment.GetEnvironmentVariable("PARADOX_BAMBOO_BRANCH_NAME");
                if (branchName != null)
                    branchName = branchName.Trim();
            }
            else
                branchName = null;

            assemblyNameForAndroid = this.GetType().Assembly.ManifestModule.ScopeName;

            FrameGameSystem = new FrameGameSystem(this.Services);
            FrameGameSystem.Visible = true;
            FrameGameSystem.Enabled = true;
            this.GameSystems.Add(FrameGameSystem);
        }