Skip to content

Commit

Permalink
new Snippets, Snippet changes and keywords
Browse files Browse the repository at this point in the history
Build sytem is coming next, stay tuned...
  • Loading branch information
Zinggi committed Feb 21, 2013
1 parent 375420c commit 4d2e09a
Show file tree
Hide file tree
Showing 13 changed files with 191 additions and 16 deletions.
10 changes: 6 additions & 4 deletions Snippets/GameInfo.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<snippet>
<content><![CDATA[
class $1 extends SimpleGame;
class $1 extends ${2:Simple}Game;
$7
defaultproperties
{
DefaultPawnClass=class'$2.$3'
PlayerControllerClass=class'$2.$4'
HUDType=class'$2.$5'
DefaultPawnClass=class'$3.$4'
PlayerControllerClass=class'$3.$5'
HUDType=class'$3.$6'
}]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>gameinfo</tabTrigger>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/HUD.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<snippet>
<content><![CDATA[
class $1 extends MobileHUD;
class ${1:ClassName} extends ${2:HUD};
$2
$3
defaultproperties
{
Expand Down
2 changes: 1 addition & 1 deletion Snippets/Pawn.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
class $1 extends SimplePawn;
class ${1:ClassName} extends ${2:Simple}Pawn;
$2
Expand Down
4 changes: 2 additions & 2 deletions Snippets/PlayerController.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
class $1 extends SimplePC;
class ${1:ClassName} extends ${2:Simple}Controller;
$4
Expand All @@ -9,7 +9,7 @@ defaultproperties
InputClass=class'$2.$3'
}]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>playercontroller</tabTrigger>
<tabTrigger>controller</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.unrealscript</scope>
</snippet>
6 changes: 3 additions & 3 deletions Snippets/beginobject.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<snippet>
<content><![CDATA[
Begin Object class=$1 name=$2
$3
Begin Object class=${1:ClassName} name=${2:ObjectName}
${3:// Properties}
End Object
$4]]></content>
Components.Add(${2:ObjectName})]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>beginobject</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
Expand Down
15 changes: 15 additions & 0 deletions Snippets/class.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<snippet>
<content><![CDATA[
class ${1:ClassName} extends ${2:Actor};
${3:// Body...}
defaultproperties
{
}]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>class</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.unrealscript</scope>
</snippet>
11 changes: 11 additions & 0 deletions Snippets/do-until.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<snippet>
<content><![CDATA[
do
{
$1
} until(${2:true})]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>do</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.unrealscript</scope>
</snippet>
4 changes: 2 additions & 2 deletions Snippets/execfunction.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<snippet>
<content><![CDATA[
exec function $1
exec function ${1:FunctionName} (${2:Args})
{
$2
${3:// body...};
}]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>exec</tabTrigger>
Expand Down
11 changes: 11 additions & 0 deletions Snippets/for.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<snippet>
<content><![CDATA[
for (${1:i = 0}; $2; ${3:i++})
{
$4
}]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>for</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.unrealscript</scope>
</snippet>
4 changes: 2 additions & 2 deletions Snippets/foreach.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<snippet>
<content><![CDATA[
foreach $1($2)
foreach ${1:Array/Iterator Function}(${2:Class}, ${3:OutActor})
{
$3
${3:OutActor}$4
}]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>foreach</tabTrigger>
Expand Down
19 changes: 19 additions & 0 deletions Snippets/switch.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<snippet>
<content><![CDATA[
switch (${1:expression})
{
case ${2:expression2}:
$3
break;
case ${4:expression3}:
$5
default:
$6
}]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>switch</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.unrealscript</scope>
</snippet>
11 changes: 11 additions & 0 deletions Snippets/while.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<snippet>
<content><![CDATA[
while(${1:True})
{
$2
}]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>while</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.unrealscript</scope>
</snippet>
106 changes: 106 additions & 0 deletions UnrealScript.sublime-completions
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"scope": "source.unrealscript",

"completions":
[
"abstract",
"array",
"arraycount",
"assert",
"auto",
"automated",
"bool",
"break",
"button",
"byte",
"coerce",
"collapsecategories",
"config",
"const",
"continue",
"default",
"delegate",
"dependson",
"deprecated",
"dontcollapsecategories",
"edfindable",
"editconst",
"editconstarray",
"editinline",
"editinlinenew",
"editinlinenotify",
"editinlineuse",
"enumcount",
"event",
"exec",
"expands",
"export",
"exportstructs",
"extends",
"false",
"true",
"final",
"float",
"global",
"globalconfig",
"goto",
"guid",
"hidecategories",
"ignores",
"import",
"init",
"input",
"insert",
"instanced",
"int",
"intrinsic",
"iterator",
"latent",
"length",
"local",
"localized",
"name",
"new",
"noexport",
"none",
"noteditinlinenew",
"notplaceable",
"nousercreate",
"operator",
"optional",
"out",
"perobjectconfig",
"placeable",
"pointer",
"postoperator",
"preoperator",
"private",
"protected",
"reliable",
"remove",
"return",
"rot",
"safereplace",
"self",
"showcategories",
"simulated",
"singular",
"state",
"static",
"string",
"super",
"transient",
"travel",
"unreliable",
"var",
"vect",
"Repnotify",
"Client",
"Server",
"AutoExpandCategories",
"implements",
"Inherits",
"NonTransient",
"StructDefaultProperties"
]
}

0 comments on commit 4d2e09a

Please sign in to comment.