Esempio n. 1
0
 ///-----------------------------------------------------------------
 public void Add(KeywordTemplate operation, int start, int end)
 {
     stack.Add(new SwapInfo()
     {
         operation = operation, start = start, end = end
     });
 }
Esempio n. 2
0
        static CSharpScriptLoader()
        {
            if (EditorApplication.isPlayingOrWillChangePlaymode)
            {
                return;
            }

            ScriptFileTemplate.Create("cs")
            .SetEndsWith("Manager")
            .SetTemplateFile("81-C# Script-NewBehaviourScript.cs.txt")
            .Load("InternalContent_Script-NewGlobalManager.cs.txt")
            .Commit();

            ScriptFileTemplate.Create("cs")
            .SetEndsWith("EditorWindow")
            .SetTemplateFile("81-C# Script-NewBehaviourScript.cs.txt")
            .Load("InternalContent_Script-NewEditorWindowScript.cs.txt")
            .Commit();

            ScriptFileTemplate.Create("cs")
            .SetTemplateFile("81-C# Script-NewBehaviourScript.cs.txt")
            .Load("InternalContent_Script-NewBehaviourScript.cs.txt")
            .Commit();

            KeywordTemplate.Create("cs")
            .SetTag("PRATEEK_CSHARP_NAMESPACE_CODE", KeywordTemplateMode.UsedAsScope)
            .Load("InternalContent_PRATEEK_CSHARP_NAMESPACE_CODE.cs")
            .Commit();

            KeywordTemplate.Create("cs")
            .SetTag("PRATEEK_CSHARP_NAMESPACE_EDITOR", KeywordTemplateMode.UsedAsScope)
            .Load("InternalContent_PRATEEK_CSHARP_NAMESPACE_EDITOR.cs")
            .Commit();

            KeywordTemplate.Create("cs")
            .SetTag("PRATEEK_CSHARP_IFDEF", KeywordTemplateMode.UsedAsScope)
            .Load("InternalContent_PRATEEK_CSHARP_IFDEF.cs")
            .Commit();
        }
Esempio n. 3
0
        static PrateekDefaultLoader()
        {
            if (EditorApplication.isPlayingOrWillChangePlaymode)
            {
                return;
            }

            KeywordTemplate.Create("cs")
            .SetTag("PRATEEK_COPYRIGHT", KeywordTemplateMode.UsedAsScope)
            .Load("InternalContent_PRATEEK_COPYRIGHT.cs")
            .Commit();

            KeywordTemplate.Create(string.Empty)
            .SetTag("PRATEEK_DATE_YEAR")
            .SetContent(System.DateTime.Now.ToString("yyyy"))
            .Commit();

            KeywordTemplate.Create(string.Empty)
            .SetTag("PRATEEK_DATE_UPDATE")
            .SetContent(string.Format("{0}", System.DateTime.Now.ToString("dd/MM/yyyy")))
            .Commit();
        }