示例#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());
        }
示例#2
0
        /// <summary>
        /// Create the template output
        /// </summary>
        public virtual string TransformText()
        {
            #line 6 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\class_type_decl.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(this.reflected ? this.reflection_macro + "\r\n" : ""));

            #line default
            #line hidden

            #line 7 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\class_type_decl.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(this.type_keyword));

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

            #line 7 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\class_type_decl.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture((this.export ? this.module_name.ToUpper() + "_API " : "") + this.type_name));

            #line default
            #line hidden

            #line 7 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\class_type_decl.tt"
            this.Write(this.ToStringHelper.ToStringWithCulture(TTHelpers.StringBefore(" : public ", this.base_class)));

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

            #line 9 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\class_type_decl.tt"
            if (reflected)
            {
            #line default
            #line hidden
                this.Write("\tGENERATED_BODY()\r\n\r\n");

            #line 12 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\class_type_decl.tt"
            }

            #line default
            #line hidden

            #line 13 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\class_type_decl.tt"
            if (constructor)
            {
            #line default
            #line hidden
                this.Write("public:\r\n\t");

            #line 15 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\class_type_decl.tt"
                this.Write(this.ToStringHelper.ToStringWithCulture(type_name));

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

            #line 17 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\class_type_decl.tt"
            }

            #line default
            #line hidden

            #line 18 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\class_type_decl.tt"
            if (!ReferenceEquals(declarations, null))
            {
            #line default
            #line hidden

            #line 19 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\class_type_decl.tt"
                foreach (var decl in declarations)
                {
            #line default
            #line hidden

            #line 20 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\class_type_decl.tt"
                    this.Write(this.ToStringHelper.ToStringWithCulture(decl));

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

            #line 21 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\class_type_decl.tt"
                }

            #line default
            #line hidden

            #line 22 "C:\UE4 Projects\KantanUE4VS\KUE4VS_Core\CodeGeneration\Templates\Preprocessed\class_type_decl.tt"
            }

            #line default
            #line hidden
            this.Write("};\r\n");
            return(this.GenerationEnvironment.ToString());
        }
示例#3
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());
        }