Beispiel #1
0
        /// <summary>
        /// Create the template output
        /// </summary>
        public virtual string TransformText()
        {
            this.Write("{\r\n\t\"FileVersion\": 3,\r\n\t\"Version\": 1,\r\n\t\"VersionName\": \"1.0\",\r\n\t\"FriendlyName\": \"" +
                       "");

            #line 10 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\uplugin_file.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(plugin_name));

            #line default
            #line hidden
            this.Write("\",\r\n\t\"Description\": \"\",\r\n\t\"Category\": \"");

            #line 12 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\uplugin_file.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(category));

            #line default
            #line hidden
            this.Write("\",\r\n\t\"CreatedBy\": \"\",\r\n\t\"CreatedByURL\": \"\",\r\n\t\"DocsURL\": \"\",\r\n\t\"MarketplaceURL\": " +
                       "\"\",\r\n\t\"SupportURL\": \"\",\r\n\t\"CanContainContent\": ");

            #line 18 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\uplugin_file.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(TTHelpers.ConvertBool(with_content)));

            #line default
            #line hidden
            this.Write(",\r\n\t\"IsBetaVersion\": false,\r\n\t\"Installed\": false\r\n}");
            return(this.GenerationEnvironment.ToString());
        }
Beispiel #2
0
        /// <summary>
        /// Create the template output
        /// </summary>
        public virtual string TransformText()
        {
            #line 6 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(this.file_header));

            #line default
            #line hidden
            this.Write("\r\n\r\nusing UnrealBuildTool;\r\nusing System.IO;\r\n\r\npublic class ");

            #line 11 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(this.module_name));

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

            #line 13 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(this.module_name));

            #line default
            #line hidden
            this.Write("(ReadOnlyTargetRules Target) : base(Target)\r\n\t{\r\n\t\tPCHUsage = PCHUsageMode.UseExp" +
                       "licitOrSharedPCHs;\r\n\r\n\t\tbEnforceIWYU = ");

            #line 17 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(TTHelpers.ConvertBool(this.enforce_iwyu)));

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

            #line 18 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(TTHelpers.ConvertBool(this.suppress_unity)));

            #line default
            #line hidden
            this.Write(@";

		PublicIncludePaths.AddRange(new string[] {
			Path.Combine(ModuleDirectory, ""Public""),
		});				
		
		PrivateIncludePaths.AddRange(new string[] {
			Path.Combine(ModuleDirectory, ""Private""),
		});
		
		PublicDependencyModuleNames.AddRange(new string[] {
");

            #line 29 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
            foreach (var mod in this.public_deps)
            {
            #line default
            #line hidden
                this.Write("\t\t\t\"");

            #line 30 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(mod));

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

            #line 31 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
            }

            #line default
            #line hidden
            this.Write("\t\t});\r\n\t\t\t\t\r\n\t\tPrivateDependencyModuleNames.AddRange(new string[] {\r\n");

            #line 35 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
            foreach (var mod in this.private_deps)
            {
            #line default
            #line hidden
                this.Write("\t\t\t\"");

            #line 36 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(mod));

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

            #line 37 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
            }

            #line default
            #line hidden
            this.Write("\t\t});\r\n\t\t\r\n\t\tDynamicallyLoadedModuleNames.AddRange(new string[] {\r\n");

            #line 41 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
            foreach (var mod in this.dynamic_deps)
            {
            #line default
            #line hidden
                this.Write("\t\t\t\"");

            #line 42 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(mod));

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

            #line 43 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
            }

            #line default
            #line hidden
            this.Write("\t\t});\r\n\r\n\t\tPrivateIncludePathModuleNames.AddRange(new string[] {\r\n");

            #line 47 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
            foreach (var mod in this.dynamic_deps)
            {
            #line default
            #line hidden
                this.Write("\t\t\t\"");

            #line 48 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(mod));

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

            #line 49 "C:\Code\KUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\build_cs_file.tt"
            }

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