Skip to content

Commit 055295c

Browse files
committed
Updated PapyrusUtil snippets
Updated to PapyrusUtil 3.2
1 parent 5b2d6af commit 055295c

File tree

53 files changed

+308
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+308
-2
lines changed

Core/Papyrus.tmLanguage

+1-1
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>CanResolvePath</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.CanResolvePath (PapyrusUtil)</description>
5+
<content><![CDATA[CanResolvePath(${1:string FileName}, ${2:string Path})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>GetErrors</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.GetErrors (PapyrusUtil)</description>
5+
<content><![CDATA[GetErrors(${1:string FileName})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>GetPathBoolValue</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.GetPathBoolValue (PapyrusUtil)</description>
5+
<content><![CDATA[GetPathBoolValue(${1:string FileName}, ${2:string Path}, ${3:bool missing = false})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>GetPathFloatValue</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.GetPathFloatValue (PapyrusUtil)</description>
5+
<content><![CDATA[GetPathFloatValue(${1:string FileName}, ${2:string Path}, ${3:float missing = 0})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>GetPathFormValue</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.GetPathFormValue (PapyrusUtil)</description>
5+
<content><![CDATA[GetPathFormValue(${1:string FileName}, ${2:string Path}, ${3:form missing = none})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>GetPathIntValue</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.GetPathIntValue (PapyrusUtil)</description>
5+
<content><![CDATA[GetPathIntValue(${1:string FileName}, ${2:string Path}, ${3:int missing = 0})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>GetPathStringValue</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.GetPathStringValue (PapyrusUtil)</description>
5+
<content><![CDATA[GetPathStringValue(${1:string FileName}, ${2:string Path}, ${3:string missing})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>IsGood</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.IsGood (PapyrusUtil)</description>
5+
<content><![CDATA[IsGood(${1:string FileName})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>IsPathArray</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.IsPathArray (PapyrusUtil)</description>
5+
<content><![CDATA[IsPathArray(${1:string FileName}, ${2:string Path})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>IsPathBool</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.IsPathBool (PapyrusUtil)</description>
5+
<content><![CDATA[IsPathBool(${1:string FileName}, ${2:string Path})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>IsPathForm</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.IsPathForm (PapyrusUtil)</description>
5+
<content><![CDATA[IsPathForm(${1:string FileName}, ${2:string Path})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>IsPathNumber</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.IsPathNumber (PapyrusUtil)</description>
5+
<content><![CDATA[IsPathNumber(${1:string FileName}, ${2:string Path})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>IsPathObject</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.IsPathObject (PapyrusUtil)</description>
5+
<content><![CDATA[IsPathObject(${1:string FileName}, ${2:string Path})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>IsPathString</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.IsPathString (PapyrusUtil)</description>
5+
<content><![CDATA[IsPathString(${1:string FileName}, ${2:string Path})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>IsPendingSave</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.IsPendingSave (PapyrusUtil)</description>
5+
<content><![CDATA[IsPendingSave(${1:string FileName})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>JsonInFolder</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.JsonInFolder (PapyrusUtil)</description>
5+
<content><![CDATA[JsonInFolder(${1:string folderPath})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>PathCount</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.PathCount (PapyrusUtil)</description>
5+
<content><![CDATA[PathCount(${1:string FileName}, ${2:string Path})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>PathFloatElements</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.PathFloatElements (PapyrusUtil)</description>
5+
<content><![CDATA[PathFloatElements(${1:string FileName}, ${2:string Path}, ${3:float invalidType = 0})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>PathFormElements</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.PathFormElements (PapyrusUtil)</description>
5+
<content><![CDATA[PathFormElements(${1:string FileName}, ${2:string Path}, ${3:form invalidType = none})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>PathIntElements</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.PathIntElements (PapyrusUtil)</description>
5+
<content><![CDATA[PathIntElements(${1:string FileName}, ${2:string Path}, ${3:int invalidType = 0})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>PathMembers</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.PathMembers (PapyrusUtil)</description>
5+
<content><![CDATA[PathMembers(${1:string FileName}, ${2:string Path})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>PathStringElements</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.PathStringElements (PapyrusUtil)</description>
5+
<content><![CDATA[PathStringElements(${1:string FileName}, ${2:string Path}, ${3:string invalidType})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>SetPathFloatValue</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.SetPathFloatValue (PapyrusUtil)</description>
5+
<content><![CDATA[SetPathFloatValue(${1:string FileName}, ${2:string Path}, ${3:float value})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>SetPathFormValue</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.SetPathFormValue (PapyrusUtil)</description>
5+
<content><![CDATA[SetPathFormValue(${1:string FileName}, ${2:string Path}, ${3:form value})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>SetPathIntValue</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.SetPathIntValue (PapyrusUtil)</description>
5+
<content><![CDATA[SetPathIntValue(${1:string FileName}, ${2:string Path}, ${3:int value})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>SetPathStringValue</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.SetPathStringValue (PapyrusUtil)</description>
5+
<content><![CDATA[SetPathStringValue(${1:string FileName}, ${2:string Path}, ${3:string value})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>Unload</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>JsonUtil.Unload (PapyrusUtil)</description>
5+
<content><![CDATA[Unload(${1:string FileName}, ${2:bool saveChanges = true}, ${3:bool minify = false})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>FilesInFolder</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>MiscUtil.FilesInFolder (PapyrusUtil)</description>
5+
<content><![CDATA[FilesInFolder(${1:string directory}, ${2:string extension})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>ScanCellActors</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>MiscUtil.ScanCellActors (PapyrusUtil)</description>
5+
<content><![CDATA[ScanCellActors(${1:ObjectReference CenterOn}, ${2:float radius = 5000}, ${3:Keyword HasKeyword = none})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>ScanCellObjects</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>MiscUtil.ScanCellObjects (PapyrusUtil)</description>
5+
<content><![CDATA[ScanCellObjects(${1:int formType}, ${2:ObjectReference CenterOn}, ${3:float radius = 5000}, ${4:Keyword HasKeyword = none})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>SortFloatArray</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>PapyrusUtil.SortFloatArray (PapyrusUtil)</description>
5+
<content><![CDATA[SortFloatArray(${1:float[] ArrayValues}, ${2:bool descending = false})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>SortIntArray</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>PapyrusUtil.SortIntArray (PapyrusUtil)</description>
5+
<content><![CDATA[SortIntArray(${1:int[] ArrayValues}, ${2:bool descending = false})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>SortStringArray</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>PapyrusUtil.SortStringArray (PapyrusUtil)</description>
5+
<content><![CDATA[SortStringArray(${1:string[] ArrayValues}, ${2:bool descending = false})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>ClearAllObjPrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.ClearAllObjPrefix (PapyrusUtil)</description>
5+
<content><![CDATA[ClearAllObjPrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>ClearObjFloatListPrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.ClearObjFloatListPrefix (PapyrusUtil)</description>
5+
<content><![CDATA[ClearObjFloatListPrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>ClearObjFloatValuePrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.ClearObjFloatValuePrefix (PapyrusUtil)</description>
5+
<content><![CDATA[ClearObjFloatValuePrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>ClearObjFormListPrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.ClearObjFormListPrefix (PapyrusUtil)</description>
5+
<content><![CDATA[ClearObjFormListPrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>ClearObjFormValuePrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.ClearObjFormValuePrefix (PapyrusUtil)</description>
5+
<content><![CDATA[ClearObjFormValuePrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>ClearObjIntListPrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.ClearObjIntListPrefix (PapyrusUtil)</description>
5+
<content><![CDATA[ClearObjIntListPrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>ClearObjIntValuePrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.ClearObjIntValuePrefix (PapyrusUtil)</description>
5+
<content><![CDATA[ClearObjIntValuePrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>ClearObjStringListPrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.ClearObjStringListPrefix (PapyrusUtil)</description>
5+
<content><![CDATA[ClearObjStringListPrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>ClearObjStringValuePrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.ClearObjStringValuePrefix (PapyrusUtil)</description>
5+
<content><![CDATA[ClearObjStringValuePrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>CountAllObjPrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.CountAllObjPrefix (PapyrusUtil)</description>
5+
<content><![CDATA[CountAllObjPrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>CountObjFloatListPrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.CountObjFloatListPrefix (PapyrusUtil)</description>
5+
<content><![CDATA[CountObjFloatListPrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>CountObjFloatValuePrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.CountObjFloatValuePrefix (PapyrusUtil)</description>
5+
<content><![CDATA[CountObjFloatValuePrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>CountObjFormListPrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.CountObjFormListPrefix (PapyrusUtil)</description>
5+
<content><![CDATA[CountObjFormListPrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>CountObjFormValuePrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.CountObjFormValuePrefix (PapyrusUtil)</description>
5+
<content><![CDATA[CountObjFormValuePrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>CountObjIntListPrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.CountObjIntListPrefix (PapyrusUtil)</description>
5+
<content><![CDATA[CountObjIntListPrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>CountObjIntValuePrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.CountObjIntValuePrefix (PapyrusUtil)</description>
5+
<content><![CDATA[CountObjIntValuePrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>CountObjStringListPrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.CountObjStringListPrefix (PapyrusUtil)</description>
5+
<content><![CDATA[CountObjStringListPrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<snippet>
2+
<tabTrigger>CountObjStringValuePrefix</tabTrigger>
3+
<scope>source.papyrus</scope>
4+
<description>StorageUtil.CountObjStringValuePrefix (PapyrusUtil)</description>
5+
<content><![CDATA[CountObjStringValuePrefix(${1:Form ObjKey}, ${2:string PrefixKey})]]></content>
6+
</snippet>

README.md

+1-1

0 commit comments

Comments
 (0)