Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.

Commit bcd3e19

Browse files
authored
Update squirrel.code-snippets
1 parent 70492b3 commit bcd3e19

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

squirrel.code-snippets

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,84 @@
157157
"body": "DistTo(Vector3(${x}, ${y}, ${z}))$0"
158158
},
159159

160+
// Config
161+
"Config.IsEmpty(): boolean":
162+
{
163+
"prefix": "Config.IsEmpty",
164+
"body": "Config.IsEmpty()$0"
165+
},
166+
"Config.KeyExists(): boolean":
167+
{
168+
"prefix": "Config.KeyExists",
169+
"body": "Config.KeyExists(${section}, ${key})$0"
170+
},
171+
"Config.GetAllSections(): array[string]":
172+
{
173+
"prefix": "Config.GetAllSections",
174+
"body": "Config.GetAllSections()$0"
175+
},
176+
"Config.GetAllKeys(): array[string]":
177+
{
178+
"prefix": "Config.GetAllKeys",
179+
"body": "Config.GetAllKeys(${section})$0"
180+
},
181+
"Config.GetBoolean(): boolean":
182+
{
183+
"prefix": "Config.GetBoolean",
184+
"body": "Config.GetBoolean(${section}, ${key}, ${default})$0"
185+
},
186+
"Config.SetBoolean()":
187+
{
188+
"prefix": "Config.SetBoolean",
189+
"body": "Config.SetBoolean(${section}, ${key}, ${value})$0"
190+
},
191+
"Config.GetInteger(): integer":
192+
{
193+
"prefix": "Config.GetInteger",
194+
"body": "Config.GetInteger(${section}, ${key}, ${default})$0"
195+
},
196+
"Config.SetInteger()":
197+
{
198+
"prefix": "Config.SetInteger",
199+
"body": "Config.SetInteger(${section}, ${key}, ${value})$0"
200+
},
201+
"Config.GetHexadecimal(): hexadecimal":
202+
{
203+
"prefix": "Config.GetHexadecimal",
204+
"body": "Config.GetHexadecimal(${section}, ${key}, ${default})$0"
205+
},
206+
"Config.SetHexadecimal()":
207+
{
208+
"prefix": "Config.SetHexadecimal",
209+
"body": "Config.SetHexadecimal(${section}, ${key}, ${value})$0"
210+
},
211+
"Config.GetFloat(): float":
212+
{
213+
"prefix": "Config.GetFloat",
214+
"body": "Config.GetFloat(${section}, ${key}, ${default})$0"
215+
},
216+
"Config.SetFloat()":
217+
{
218+
"prefix": "Config.SetFloat",
219+
"body": "Config.SetFloat(${section}, ${key}, ${value})$0"
220+
},
221+
"Config.GetString(): string":
222+
{
223+
"prefix": "Config.GetString",
224+
"body": "Config.GetString(${section}, ${key}, ${default})$0"
225+
},
226+
"Config.SetString()":
227+
{
228+
"prefix": "Config.SetString",
229+
"body": "Config.SetString(${section}, ${key}, ${value})$0"
230+
},
231+
"Config.Delete(): boolean":
232+
{
233+
"prefix": "Config.Delete",
234+
"body": "Config.Delete(${section}, ${key})$0"
235+
},
236+
237+
160238
// Console
161239
"Console.AddCommand()":
162240
{
@@ -585,6 +663,11 @@
585663
"prefix": [ "SimObject.GetNext", "GetNext" ],
586664
"body": "GetNext()$0"
587665
},
666+
"SimObject.SetDestroyOnUnload()":
667+
{
668+
"prefix": [ "SimObject.SetDestroyOnUnload", "SetDestroyOnUnload" ],
669+
"body": "SetDestroyOnUnload(${toggle})$0"
670+
},
588671
"SimObject.Destroy()":
589672
{
590673
"prefix": [ "SimObject.Destroy", "Destroy" ],

0 commit comments

Comments
 (0)