Exemplo n.º 1
0
        private IEnumerator UnpressPov2Button(float time, ActionMappings button)
        {
            yield return(new WaitForSeconds(time));

            currPov2Pos = Vector2.zero;
            lastPov2Pos = Vector2.zero;
            output.SetButton((uint)button, false);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Create the template output
        /// </summary>
        public virtual string TransformText()
        {
            this.Write("\r\n");

            #line 7 "C:\GitHub\mue\Engine\Plugins\MonoUE\Source\Programs\MonoUE.Tasks\Tasks\IniHelperTemplate.tt"

//
// Copyright (c) Microsoft Corporation.  All Rights Reserved.
// See LICENSE.txt in the plugin root for license information.


            #line default
            #line hidden
            this.Write("//\r\n// THIS FILE WAS GENERATED AUTOMATICALLY FROM THE INPUT INI FILES\r\n// ANY CHA" +
                       "NGES YOU MAKE TO IT WILL BE LOST\r\n//\r\n");

            #line 16 "C:\GitHub\mue\Engine\Plugins\MonoUE\Source\Programs\MonoUE.Tasks\Tasks\IniHelperTemplate.tt"
            if (HasNamespace)
            {
            #line default
            #line hidden
                this.Write("namespace ");

            #line 17 "C:\GitHub\mue\Engine\Plugins\MonoUE\Source\Programs\MonoUE.Tasks\Tasks\IniHelperTemplate.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(Namespace));

            #line default
            #line hidden
                this.Write("\r\n{\r\n");

            #line 19 "C:\GitHub\mue\Engine\Plugins\MonoUE\Source\Programs\MonoUE.Tasks\Tasks\IniHelperTemplate.tt"
            }

            #line default
            #line hidden
            this.Write("\tstatic class InputAction\r\n\t{\r\n");

            #line 22 "C:\GitHub\mue\Engine\Plugins\MonoUE\Source\Programs\MonoUE.Tasks\Tasks\IniHelperTemplate.tt"
            foreach (var a in ActionMappings.OrderBy(s => s))
            {
            #line default
            #line hidden
                this.Write("\t\tpublic const string ");

            #line 23 "C:\GitHub\mue\Engine\Plugins\MonoUE\Source\Programs\MonoUE.Tasks\Tasks\IniHelperTemplate.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(this.ConvertToVariableName(a)));

            #line default
            #line hidden
                this.Write(" = \"");

            #line 23 "C:\GitHub\mue\Engine\Plugins\MonoUE\Source\Programs\MonoUE.Tasks\Tasks\IniHelperTemplate.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(a));

            #line default
            #line hidden
                this.Write("\";\r\n");

            #line 24 "C:\GitHub\mue\Engine\Plugins\MonoUE\Source\Programs\MonoUE.Tasks\Tasks\IniHelperTemplate.tt"
            }

            #line default
            #line hidden
            this.Write("\t}\r\n\r\n\tstatic class InputAxis\r\n\t{\r\n");

            #line 29 "C:\GitHub\mue\Engine\Plugins\MonoUE\Source\Programs\MonoUE.Tasks\Tasks\IniHelperTemplate.tt"
            foreach (var a in AxisMappings.OrderBy(s => s))
            {
            #line default
            #line hidden
                this.Write("\t\tpublic const string ");

            #line 30 "C:\GitHub\mue\Engine\Plugins\MonoUE\Source\Programs\MonoUE.Tasks\Tasks\IniHelperTemplate.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(ConvertToVariableName(a)));

            #line default
            #line hidden
                this.Write(" = \"");

            #line 30 "C:\GitHub\mue\Engine\Plugins\MonoUE\Source\Programs\MonoUE.Tasks\Tasks\IniHelperTemplate.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(a));

            #line default
            #line hidden
                this.Write("\";\r\n");

            #line 31 "C:\GitHub\mue\Engine\Plugins\MonoUE\Source\Programs\MonoUE.Tasks\Tasks\IniHelperTemplate.tt"
            }

            #line default
            #line hidden
            this.Write("\t}\r\n");

            #line 33 "C:\GitHub\mue\Engine\Plugins\MonoUE\Source\Programs\MonoUE.Tasks\Tasks\IniHelperTemplate.tt"
            if (HasNamespace)
            {
            #line default
            #line hidden
                this.Write("}\r\n");

            #line 35 "C:\GitHub\mue\Engine\Plugins\MonoUE\Source\Programs\MonoUE.Tasks\Tasks\IniHelperTemplate.tt"
            }

            #line default
            #line hidden
            return(this.GenerationEnvironment.ToString());
        }
Exemplo n.º 3
0
 public Test1Controller()
 {
     _actions = new ActionMappings<Test1Controller>(this);
     _views   = new ViewMappings<Test1Controller>(this);
 }