private void UpdateAdvancedStateInterpolationFiles(Assembly assembly)
        {
            mStateInterpolationItemAdder = new CodeBuildItemAdder();
            mStateInterpolationItemAdder.Add("GumPlugin/Embedded/StateInterpolation/Back.cs");
            mStateInterpolationItemAdder.Add("GumPlugin/Embedded/StateInterpolation/Bounce.cs");
            mStateInterpolationItemAdder.Add("GumPlugin/Embedded/StateInterpolation/Circular.cs");
            mStateInterpolationItemAdder.Add("GumPlugin/Embedded/StateInterpolation/Cubic.cs");
            mStateInterpolationItemAdder.Add("GumPlugin/Embedded/StateInterpolation/Elastic.cs");
            mStateInterpolationItemAdder.Add("GumPlugin/Embedded/StateInterpolation/Exponential.cs");
            mStateInterpolationItemAdder.Add("GumPlugin/Embedded/StateInterpolation/Instant.cs");
            mStateInterpolationItemAdder.Add("GumPlugin/Embedded/StateInterpolation/Linear.cs");
            mStateInterpolationItemAdder.Add("GumPlugin/Embedded/StateInterpolation/Quadratic.cs");
            mStateInterpolationItemAdder.Add("GumPlugin/Embedded/StateInterpolation/Quartic.cs");
            mStateInterpolationItemAdder.Add("GumPlugin/Embedded/StateInterpolation/Quintic.cs");
            mStateInterpolationItemAdder.Add("GumPlugin/Embedded/StateInterpolation/ShakeTweener.cs");
            mStateInterpolationItemAdder.Add("GumPlugin/Embedded/StateInterpolation/Sinusoidal.cs");
            mStateInterpolationItemAdder.Add("GumPlugin/Embedded/StateInterpolation/Tweener.cs");
            mStateInterpolationItemAdder.Add("GumPlugin/Embedded/StateInterpolation/TweenerManager.cs");

            mStateInterpolationItemAdder.AddFileBehavior = AddFileBehavior.IfOutOfDate;

            mStateInterpolationItemAdder.OutputFolderInProject = "StateInterpolation";
            TaskManager.Self.AddSync(() =>
            {
                FlatRedBall.Glue.Plugins.PluginManager.ReceiveOutput("Adding interpolation files from Gum plugin");
                mStateInterpolationItemAdder.IsVerbose = true;
                mStateInterpolationItemAdder.PerformAddAndSave(assembly);
            }
                                     , "Adding interpolation files for Gum");
        }
        public void UpdateCodeInProjectPresence()
        {
            Assembly assembly = Assembly.GetExecutingAssembly();

            mTileGraphicsAdder.PerformAddAndSave(assembly);
            mTileCollisionAdder.PerformAddAndSave(assembly);
            mTileEntityAdder.PerformAddAndSave(assembly);
        }
Esempio n. 3
0
        public static void AddEmbeddedCode()
        {
            var adder = new CodeBuildItemAdder();

            adder.OutputFolderInProject = "OcularPlaneRuntime";
            adder.AddFileBehavior       = AddFileBehavior.IfOutOfDate;
            adder.Add("LiveUpdater.CodeGeneration.EntireFiles.OcularPlaneManager.cs");

            var assembly = typeof(EmbeddedCodeAdder).Assembly;

            adder.PerformAddAndSave(assembly);
        }
        private void UpdateGumFiles(Assembly assembly)
        {
            mCodeAdder = new CodeBuildItemAdder();
            mCodeAdder.OutputFolderInProject = "GumCore";
            // April 14, 2017
            // Used to only copy
            // if out of date, but
            // this plugin is updated
            // so frequently, and if we
            // don't force copy, then starter
            // projects will aywas be out of date
            // because their modified date is newer
            // than the plugin.
            //mCodeAdder.AddFileBehavior = AddFileBehavior.IfOutOfDate;
            mCodeAdder.AddFileBehavior = AddFileBehavior.AlwaysCopy;

            mCodeAdder.Add("GumPlugin/Embedded/ContentManagerWrapper.cs");

            mCodeAdder.Add("GumPlugin/Embedded/GumIdb.cs");
            mCodeAdder.Add("GumPlugin/Embedded/PlatformCompatability.cs");

            mCodeAdder.Add("GumPlugin/Embedded/GraphicalUiElement.IWindow.cs");
            mCodeAdder.Add("GumPlugin/Embedded/SystemManagers.FlatRedBall.cs");
            mCodeAdder.Add("GumPlugin/Embedded/GumAnimation.cs");


            // Sometimes we can add entire folders because the extensions
            // are simple:
            mCodeAdder.AddFolder("GumPlugin.Embedded.LibraryFiles.GumDataTypes", assembly);


            // But in situations where files have names like
            // FileName.Subname.cs, we have to be explicit and use slashes:
            mCodeAdder.Add("GumPlugin/Embedded/LibraryFiles/GumRuntime/Blend.cs");
            mCodeAdder.Add("GumPlugin/Embedded/LibraryFiles/GumRuntime/ElementSaveExtensionMethods.cs");
            mCodeAdder.Add("GumPlugin/Embedded/LibraryFiles/GumRuntime/ElementSaveExtensions.GumRuntime.cs");
            mCodeAdder.Add("GumPlugin/Embedded/LibraryFiles/GumRuntime/ElementWithState.cs");
            mCodeAdder.Add("GumPlugin/Embedded/LibraryFiles/GumRuntime/GraphicalUiElement.cs");
            mCodeAdder.Add("GumPlugin/Embedded/LibraryFiles/GumRuntime/InstanceSaveExtensionMethods.cs");
            mCodeAdder.Add("GumPlugin/Embedded/LibraryFiles/GumRuntime/InstanceSaveExtensionMethods.GumRuntime.cs");
            mCodeAdder.Add("GumPlugin/Embedded/LibraryFiles/GumRuntime/ObjectFinder.cs");
            mCodeAdder.Add("GumPlugin/Embedded/LibraryFiles/GumRuntime/RecursiveVariableFinder.cs");
            mCodeAdder.Add("GumPlugin/Embedded/LibraryFiles/GumRuntime/StandardElementsManager.cs");
            mCodeAdder.Add("GumPlugin/Embedded/LibraryFiles/GumRuntime/StateSaveExtensionMethods.cs");
            mCodeAdder.Add("GumPlugin/Embedded/LibraryFiles/GumRuntime/VariableSaveExtensionMethods.cs");


            mCodeAdder.AddFolder("GumPlugin.Embedded.LibraryFiles.RenderingLibrary", assembly);

            mCodeAdder.AddFolder("GumPlugin.Embedded.LibraryFiles.ToolsUtilities", assembly);

            TaskManager.Self.AddSync(() => mCodeAdder.PerformAddAndSave(assembly), "Adding standard Gum files");
        }
Esempio n. 5
0
        private void HandleGluxLoad()
        {
            Assembly assembly = Assembly.GetExecutingAssembly();

            itemAdder.PerformAddAndSave(assembly);
        }
Esempio n. 6
0
        private void HandleAddGameScriptDebugging(object sender, EventArgs e)
        {
            Assembly assembly = Assembly.GetExecutingAssembly();

            mDebuggingItemAdder.PerformAddAndSave(assembly);
        }
Esempio n. 7
0
        void HandleAddGameScript(object sender, EventArgs args)
        {
            Assembly assembly = Assembly.GetExecutingAssembly();

            mCoreItemAdder.PerformAddAndSave(assembly);
        }