unity-code-templates 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/ruby
2
2
  require 'fileutils'
3
3
 
4
- FileUtils.cp_r "ScriptTemplates", "/Applications/Unity/Unity.app/Contents/Resources"
5
- FileUtils.cp_r "MonoDevelop-Unity-2.8", "~/Library"
4
+ FileUtils.cp_r File.expand_path("#{__FILE__}/../../lib/ScriptTemplates"), "/Applications/Unity/Unity.app/Contents/Resources"
5
+ FileUtils.cp_r File.expand_path("#{__FILE__}/../../lib/MonoDevelop-Unity-2.8"), File.expand_path("~/Library")
@@ -0,0 +1,25 @@
1
+ <schemes version="1.0">
2
+ <scheme name="current">
3
+ <binding command="MonoDevelop.Ide.Commands.EditCommands.ToggleCodeComment" shortcut="Meta+/" />
4
+ <binding command="MonoDevelop.Ide.Commands.TextEditorCommands.ShowParameterCompletionWindow" shortcut="Meta+P" />
5
+ <binding command="MonoDevelop.Ide.Commands.FileCommands.PrintDocument" shortcut="" />
6
+ <binding command="MonoDevelop.Debugger.Soft.Unity.Commands.SearchReference" shortcut="Control+J" />
7
+ <binding command="MonoDevelop.Ide.Commands.TextEditorCommands.ShowCodeTemplateWindow" shortcut="Alt+Meta+T" />
8
+ <binding command="MonoDevelop.Ide.Commands.TextEditorCommands.ToggleBlockSelectionMode" shortcut="Meta+*" />
9
+ <binding command="MonoDevelop.Ide.Commands.TextEditorCommands.MoveBlockDown" shortcut="Shift+Meta+Down" />
10
+ <binding command="MonoDevelop.Ide.Commands.TextEditorCommands.MoveBlockUp" shortcut="Shift+Meta+Up" />
11
+ <binding command="MonoDevelop.CSharp.ExpandCommands.ShrinkSelection" shortcut="Meta+-" />
12
+ <binding command="MonoDevelop.CSharp.ExpandCommands.ExpandSelection" shortcut="Meta+=" />
13
+ <binding command="MonoDevelop.Ide.Commands.TextEditorCommands.DeleteLine" shortcut="Meta+Y" />
14
+ <binding command="MonoDevelop.Ide.Commands.TextEditorCommands.DeleteNextSubword" shortcut="Alt+Delete" />
15
+ <binding command="MonoDevelop.Ide.Commands.TextEditorCommands.DeletePrevSubword" shortcut="Alt+BackSpace" />
16
+ <binding command="MonoDevelop.Ide.Commands.EditCommands.IndentSelection" shortcut="Shift+Meta+Right" />
17
+ <binding command="MonoDevelop.Ide.Commands.EditCommands.UnIndentSelection" shortcut="Shift+Meta+Left" />
18
+ <binding command="MonoDevelop.SourceEditor.SourceEditorCommands.DynamicAbbrev" shortcut="Control+Shift+Space" />
19
+ <binding command="MonoDevelop.Ide.Commands.NavigationCommands.NavigateBack" shortcut="Meta+}" />
20
+ <binding command="MonoDevelop.Ide.Commands.NavigationCommands.NavigateForward" shortcut="Meta+{" />
21
+ <binding command="MonoDevelop.Refactoring.RefactoryCommands.GotoDeclaration" shortcut="Meta+B" />
22
+ <binding command="MonoDevelop.Ide.Commands.ProjectCommands.BuildSolution" shortcut="Control+Shift+Return" />
23
+ <binding command="MonoDevelop.Ide.Commands.ProjectCommands.Build" shortcut="Control+Return" />
24
+ </scheme>
25
+ </schemes>
@@ -0,0 +1,43 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Policies>
3
+ <PolicySet id="Default">
4
+ <TextStylePolicy inheritsSet="Mono" inheritsScope="text/plain" scope="text/plain">
5
+ <FileWidth>120</FileWidth>
6
+ <TabWidth>4</TabWidth>
7
+ </TextStylePolicy>
8
+ <TextStylePolicy inheritsSet="null" scope="text/x-csharp" />
9
+ <CSharpFormattingPolicy inheritsSet="Mono" inheritsScope="text/x-csharp" scope="text/x-csharp">
10
+ <NamespaceBraceStyle>EndOfLine</NamespaceBraceStyle>
11
+ <ClassBraceStyle>EndOfLine</ClassBraceStyle>
12
+ <InterfaceBraceStyle>EndOfLine</InterfaceBraceStyle>
13
+ <StructBraceStyle>EndOfLine</StructBraceStyle>
14
+ <EnumBraceStyle>EndOfLine</EnumBraceStyle>
15
+ <MethodBraceStyle>EndOfLine</MethodBraceStyle>
16
+ <ConstructorBraceStyle>EndOfLine</ConstructorBraceStyle>
17
+ <DestructorBraceStyle>EndOfLine</DestructorBraceStyle>
18
+ <PlaceElseOnNewLine>True</PlaceElseOnNewLine>
19
+ <PlaceElseIfOnNewLine>True</PlaceElseIfOnNewLine>
20
+ <PlaceCatchOnNewLine>True</PlaceCatchOnNewLine>
21
+ <PlaceFinallyOnNewLine>True</PlaceFinallyOnNewLine>
22
+ <BeforeMethodDeclarationParentheses>False</BeforeMethodDeclarationParentheses>
23
+ <BeforeMethodCallParentheses>False</BeforeMethodCallParentheses>
24
+ <BeforeConstructorDeclarationParentheses>False</BeforeConstructorDeclarationParentheses>
25
+ <BeforeIndexerDeclarationBracket>False</BeforeIndexerDeclarationBracket>
26
+ <BeforeDelegateDeclarationParentheses>False</BeforeDelegateDeclarationParentheses>
27
+ <NewParentheses>False</NewParentheses>
28
+ <IfParentheses>False</IfParentheses>
29
+ <WhileParentheses>False</WhileParentheses>
30
+ <ForParentheses>False</ForParentheses>
31
+ <ForeachParentheses>False</ForeachParentheses>
32
+ <CatchParentheses>False</CatchParentheses>
33
+ <SwitchParentheses>False</SwitchParentheses>
34
+ <LockParentheses>False</LockParentheses>
35
+ <UsingParentheses>False</UsingParentheses>
36
+ <SpacesBeforeBrackets>False</SpacesBeforeBrackets>
37
+ </CSharpFormattingPolicy>
38
+ <DotNetNamingPolicy>
39
+ <DirectoryNamespaceAssociation>None</DirectoryNamespaceAssociation>
40
+ <ResourceNamePolicy>FileFormatDefault</ResourceNamePolicy>
41
+ </DotNetNamingPolicy>
42
+ </PolicySet>
43
+ </Policies>
@@ -0,0 +1,43 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Policies>
3
+ <PolicySet id="Default">
4
+ <TextStylePolicy inheritsSet="Mono" inheritsScope="text/plain" scope="text/plain">
5
+ <FileWidth>120</FileWidth>
6
+ <TabWidth>4</TabWidth>
7
+ </TextStylePolicy>
8
+ <TextStylePolicy inheritsSet="null" scope="text/x-csharp" />
9
+ <CSharpFormattingPolicy inheritsSet="Mono" inheritsScope="text/x-csharp" scope="text/x-csharp">
10
+ <NamespaceBraceStyle>EndOfLine</NamespaceBraceStyle>
11
+ <ClassBraceStyle>EndOfLine</ClassBraceStyle>
12
+ <InterfaceBraceStyle>EndOfLine</InterfaceBraceStyle>
13
+ <StructBraceStyle>EndOfLine</StructBraceStyle>
14
+ <EnumBraceStyle>EndOfLine</EnumBraceStyle>
15
+ <MethodBraceStyle>EndOfLine</MethodBraceStyle>
16
+ <ConstructorBraceStyle>EndOfLine</ConstructorBraceStyle>
17
+ <DestructorBraceStyle>EndOfLine</DestructorBraceStyle>
18
+ <PlaceElseOnNewLine>True</PlaceElseOnNewLine>
19
+ <PlaceElseIfOnNewLine>True</PlaceElseIfOnNewLine>
20
+ <PlaceCatchOnNewLine>True</PlaceCatchOnNewLine>
21
+ <PlaceFinallyOnNewLine>True</PlaceFinallyOnNewLine>
22
+ <BeforeMethodDeclarationParentheses>False</BeforeMethodDeclarationParentheses>
23
+ <BeforeMethodCallParentheses>False</BeforeMethodCallParentheses>
24
+ <BeforeConstructorDeclarationParentheses>False</BeforeConstructorDeclarationParentheses>
25
+ <BeforeIndexerDeclarationBracket>False</BeforeIndexerDeclarationBracket>
26
+ <BeforeDelegateDeclarationParentheses>False</BeforeDelegateDeclarationParentheses>
27
+ <NewParentheses>False</NewParentheses>
28
+ <IfParentheses>False</IfParentheses>
29
+ <WhileParentheses>False</WhileParentheses>
30
+ <ForParentheses>False</ForParentheses>
31
+ <ForeachParentheses>False</ForeachParentheses>
32
+ <CatchParentheses>False</CatchParentheses>
33
+ <SwitchParentheses>False</SwitchParentheses>
34
+ <LockParentheses>False</LockParentheses>
35
+ <UsingParentheses>False</UsingParentheses>
36
+ <SpacesBeforeBrackets>False</SpacesBeforeBrackets>
37
+ </CSharpFormattingPolicy>
38
+ <DotNetNamingPolicy>
39
+ <DirectoryNamespaceAssociation>None</DirectoryNamespaceAssociation>
40
+ <ResourceNamePolicy>FileFormatDefault</ResourceNamePolicy>
41
+ </DotNetNamingPolicy>
42
+ </PolicySet>
43
+ </Policies>
@@ -0,0 +1,16 @@
1
+ using UnityEngine;
2
+ using System.Collections.Generic;
3
+ using System.Collections;
4
+ using System.Linq;
5
+ using Goodstuff.NaturalLanguage;
6
+
7
+ public class #SCRIPTNAME# : MonoBehaviour {
8
+
9
+ public void Start() {
10
+
11
+ }
12
+
13
+ public void Update() {
14
+
15
+ }
16
+ }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unity-code-templates
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Logan Barnett
@@ -28,6 +28,10 @@ extensions: []
28
28
  extra_rdoc_files: []
29
29
 
30
30
  files:
31
+ - lib/MonoDevelop-Unity-2.8/KeyBindings/Custom.mac-kb.xml
32
+ - lib/MonoDevelop-Unity-2.8/Policies/Default.mdpolicy.xml
33
+ - lib/MonoDevelop-Unity-2.8/Policies/Default.mdpolicy.xml.previous
34
+ - lib/ScriptTemplates/81-C# Script-NewBehaviourScript.cs.txt
31
35
  - lib/unity-code-templates.rb
32
36
  - bin/configure-unity-monodevelop
33
37
  homepage: http://rubygems.org/gems/unity-code-templates