예제 #1
0
        public void PrintVariables(Jiffy.Essence essence)
        {
            PushIndent(essence.indent);

            WriteLine("/// <summary>");
            WriteLine("/// Type: Monoscript");
            WriteLine("/// <summary>");
            WriteLine("protected SerializedProperty m_Script;");
            essence.Foreach((FieldInfo info) =>
            {
        #line default
        #line hidden

        #line 59 "C:\Users\Byron\Documents\jiffy-editor\proj.cs\JiffyEditor\Jiffy\Templates\Generators\SimpleEditor.t4"
                this.Write("/// <summary>\r\n/// Type: ");


        #line default
        #line hidden

        #line 61 "C:\Users\Byron\Documents\jiffy-editor\proj.cs\JiffyEditor\Jiffy\Templates\Generators\SimpleEditor.t4"
                this.Write(this.ToStringHelper.ToStringWithCulture(TemplateUtility.NiceTypeName(info.FieldType)));


        #line default
        #line hidden

        #line 61 "C:\Users\Byron\Documents\jiffy-editor\proj.cs\JiffyEditor\Jiffy\Templates\Generators\SimpleEditor.t4"
                this.Write("\r\n/// </summary>\r\nprotected SerializedProperty ");


        #line default
        #line hidden

        #line 63 "C:\Users\Byron\Documents\jiffy-editor\proj.cs\JiffyEditor\Jiffy\Templates\Generators\SimpleEditor.t4"
                this.Write(this.ToStringHelper.ToStringWithCulture(info.Name));


        #line default
        #line hidden

        #line 63 "C:\Users\Byron\Documents\jiffy-editor\proj.cs\JiffyEditor\Jiffy\Templates\Generators\SimpleEditor.t4"
                this.Write(";\r\n");


        #line default
        #line hidden

        #line 64 "C:\Users\Byron\Documents\jiffy-editor\proj.cs\JiffyEditor\Jiffy\Templates\Generators\SimpleEditor.t4"
            });
            PopIndent();
        }