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

Commit 59ea46b

Browse files
authored
Update squirrel.code-snippets
1 parent 2d89e60 commit 59ea46b

File tree

1 file changed

+190
-4
lines changed

1 file changed

+190
-4
lines changed

squirrel.code-snippets

Lines changed: 190 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,15 @@
2020
"prefix": "Gender",
2121
"body": "Gender.${1|Invalid,Male,Female|}$0"
2222
},
23+
"MissionProgressState":
24+
{
25+
"prefix": "MissionProgressState",
26+
"body": "MissionProgressState.${1|Invalid,Normal,Danger,Complete,Incomplete,AnimateComplete|}$0"
27+
},
2328
"GameSliceState":
2429
{
25-
"prefix": "Gender",
26-
"body": "Gender.${1|Locked,Unlocked,Restoring,Started,Completed|}$0"
30+
"prefix": "GameSliceState",
31+
"body": "GameSliceState.${1|Locked,Unlocked,Restoring,Started,Completed|}$0"
2732
},
2833
"TargetType":
2934
{
@@ -35,6 +40,11 @@
3540
"prefix": "SimObjectType",
3641
"body": "SimObjectType.${1|IAIPathMarker,AIJumpPoint,AIOutlineRegion,AISeedPoint,AudioEmitterMarker,AudioTriggerRegion,BoostRegion,Camera,CameraMarker,Character,Collectible,CombatRegion,CopRoadBlock,Director,Door,DynamicLight,FleeToPoint,FXSimComponent,HidingSpot,HijackReturn,InterestPoint,IrradianceVolume,Marker,MarkerProgressionTrigger,MarkerRaceStartingGrid,MeleeScriptSystem,ModelAsset,NISScriptSystem,ParkingSpot,Prefab,Prop,ReinforcementPoint,TrafficRegion,TriggerRegion,Turf,Vehicle,Weapon,WeaponSpawner,StartRegion,SpawnPoint,SpawnPointProgressionTrigger,SpawnRegion|}$0"
3742
},
43+
"UIButton":
44+
{
45+
"prefix": "UIButton",
46+
"body": "UIButton.${1|Invalid,Accept,Back,Button1,Button2,Start,Select,L1,R1,L2,R2,L3,R3,L1R1,L2R2,DPAD_Up,DPAD_Down,DPAD_Left,DPAD_Right,DPAD_LR,DPAD_UD,L_Stick,R_Stick,L_Stick_LR,L_Stick_UD,R_Stick_LR,R_Stick_UD,Accept_Hold,Back_Hold,Button1_Hold,Button2_Hold,L1_Hold,R1_Hold,L2_Hold,R2_Hold,F1,Wheel_Up,Wheel_Down|}$0"
47+
},
3848

3949
// Color
4050
"Color()":
@@ -318,6 +328,88 @@
318328
"body": "State$0"
319329
},
320330

331+
// Hud
332+
"Hud.ShowActionButton()":
333+
{
334+
"prefix": "Hud.ShowActionButton",
335+
"body": "Hud.ShowActionButton(${text}, ${UIButton}, ${actiontype})$0"
336+
},
337+
"Hud.ShowActionButtonOneFrame()":
338+
{
339+
"prefix": "Hud.ShowActionButtonOneFrame",
340+
"body": "Hud.ShowActionButtonOneFrame(${text}, ${UIButton}, ${actiontype})$0"
341+
},
342+
"Hud.HideActionButton()":
343+
{
344+
"prefix": "Hud.HideActionButton",
345+
"body": "Hud.HideActionButton()$0"
346+
},
347+
"Hud.SetMissionHealthVisible()":
348+
{
349+
"prefix": "Hud.SetMissionHealthVisible",
350+
"body": "Hud.SetMissionHealthVisible(${boolean})$0"
351+
},
352+
"Hud.SetMissionHealthCaption()":
353+
{
354+
"prefix": "Hud.SetMissionHealthCaption",
355+
"body": "Hud.SetMissionHealthCaption(${text})$0"
356+
},
357+
"Hud.SetMissionHealthValue()":
358+
{
359+
"prefix": "Hud.SetMissionHealthValue",
360+
"body": "Hud.SetMissionHealthValue(${value})$0"
361+
},
362+
"Hud.SetMissionHealthSuccess()":
363+
{
364+
"prefix": "Hud.SetMissionHealthSuccess",
365+
"body": "Hud.SetMissionHealthSuccess(${boolean})$0"
366+
},
367+
"Hud.SetMissionProgressVisible()":
368+
{
369+
"prefix": "Hud.SetMissionProgressVisible",
370+
"body": "Hud.SetMissionProgressVisible(${boolean})$0"
371+
},
372+
"Hud.ClearMissionProgress()":
373+
{
374+
"prefix": "Hud.ClearMissionProgress",
375+
"body": "Hud.ClearMissionProgress()$0"
376+
},
377+
"Hud.SetMissionProgressState()":
378+
{
379+
"prefix": "Hud.SetMissionProgressState",
380+
"body": "Hud.SetMissionProgressState(${MissionProgressState}, ${slot})$0"
381+
},
382+
"Hud.SetMissionProgressText()":
383+
{
384+
"prefix": "Hud.SetMissionProgressText",
385+
"body": "Hud.SetMissionProgressText(${text}, ${slot})$0"
386+
},
387+
"Hud.ShowHintText()":
388+
{
389+
"prefix": "Hud.ShowHintText",
390+
"body": "Hud.ShowHintText(${text}, ${time})$0"
391+
},
392+
"Hud.HideHintText()":
393+
{
394+
"prefix": "Hud.HideHintText",
395+
"body": "Hud.HideHintText()$0"
396+
},
397+
"Hud.ShowInfoPopup()":
398+
{
399+
"prefix": "Hud.ShowInfoPopup",
400+
"body": "Hud.ShowInfoPopup(${text}, ${time})$0"
401+
},
402+
"Hud.HideInfoPopup()":
403+
{
404+
"prefix": "Hud.HideInfoPopup",
405+
"body": "Hud.HideInfoPopup()$0"
406+
},
407+
"Hud.ShouldRender":
408+
{
409+
"prefix": "Hud.ShouldRender",
410+
"body": "Hud.ShouldRender$0"
411+
},
412+
321413
// Metrics
322414
"Metrics.SimTime: float":
323415
{
@@ -370,6 +462,11 @@
370462
},
371463

372464
// SimObject
465+
"SimObject.Create(): SimObject":
466+
{
467+
"prefix": "SimObject.Create",
468+
"body": "SimObject.Create(${model}, Vector3(${x}, ${y}, ${z}), Vector3(${rx}, ${ry}, ${rz}))$0"
469+
},
373470
"SimObject.GetHead(): SimObject":
374471
{
375472
"prefix": "SimObject.GetHead",
@@ -395,12 +492,17 @@
395492
"prefix": [ "SimObject.Suspend", "Suspend" ],
396493
"body": "Suspend()$0"
397494
},
398-
"SimObject.GetName: Hash":
495+
"SimObject.GetName(): Hash":
399496
{
400497
"prefix": [ "SimObject.GetName", "GetName" ],
401498
"body": "GetName()$0"
402499
},
403-
"SimObject.GetType: SimObjectType":
500+
"SimObject.GetPropertyName(): Hash":
501+
{
502+
"prefix": [ "SimObject.GetPropertyName", "GetPropertyName" ],
503+
"body": "GetPropertyName()$0"
504+
},
505+
"SimObject.GetType(): SimObjectType":
404506
{
405507
"prefix": [ "SimObject.GetType", "GetType" ],
406508
"body": "GetType()$0"
@@ -426,6 +528,18 @@
426528
"body": "SetRotation(Vector3(${x}, ${y}, ${z}))$0"
427529
},
428530

531+
// SimObjectProp
532+
"SimObjectProp(): SimObjectProp":
533+
{
534+
"prefix": "SimObjectProp",
535+
"body": "SimObjectProp(${SimObject})$0"
536+
},
537+
"SimObjectProp.Create(): SimObjectProp":
538+
{
539+
"prefix": "SimObjectProp.Create",
540+
"body": "SimObjectProp.Create(${model}, Vector3(${x}, ${y}, ${z}), Vector3(${rx}, ${ry}, ${rz}))$0"
541+
},
542+
429543
// SimCharacter
430544
"SimCharacter(): SimCharacter":
431545
{
@@ -447,6 +561,11 @@
447561
"prefix": [ "SimCharacter.SetAttackRights", "SetAttackRights" ],
448562
"body": "SetAttackRights(${boolean})$0"
449563
},
564+
"SimCharacter.GetTarget(): SimObject":
565+
{
566+
"prefix": [ "SimCharacter.GetTarget", "GetTarget" ],
567+
"body": "GetTarget(${TargetType})$0"
568+
},
450569
"SimCharacter.SetTarget()":
451570
{
452571
"prefix": [ "SimCharacter.SetTarget", "SetTarget" ],
@@ -565,6 +684,73 @@
565684
"body": "DoorsLocked$0"
566685
},
567686

687+
// SimWeapon
688+
"SimWeapon(): SimWeapon":
689+
{
690+
"prefix": "SimWeapon",
691+
"body": "SimWeapon(${SimObject})$0"
692+
},
693+
"SimWeapon.Create(): SimWeapon":
694+
{
695+
"prefix": "SimWeapon.Create",
696+
"body": "SimWeapon.Create(${model}, Vector3(${x}, ${y}, ${z}), Vector3(${rx}, ${ry}, ${rz}))$0"
697+
},
698+
"SimWeapon.CreateAndEquip(): SimWeapon":
699+
{
700+
"prefix": "SimWeapon.Create",
701+
"body": "SimWeapon.Create(${SimCharacter}, ${model})$0"
702+
},
703+
"SimWeapon.CreateAndEquipStowed(): SimWeapon":
704+
{
705+
"prefix": "SimWeapon.CreateAndEquipStowed",
706+
"body": "SimWeapon.CreateAndEquipStowed(${SimCharacter}, ${model})$0"
707+
},
708+
"SimWeapon.GetEquipped(): SimWeapon":
709+
{
710+
"prefix": "SimWeapon.GetEquipped",
711+
"body": "SimWeapon.GetEquipped(${SimCharacter})$0"
712+
},
713+
"SimWeapon.GetStowed(): SimWeapon":
714+
{
715+
"prefix": "SimWeapon.GetStowed",
716+
"body": "SimWeapon.GetStowed(${SimCharacter})$0"
717+
},
718+
"SimWeapon.IsStowable(): boolean":
719+
{
720+
"prefix": [ "SimWeapon.IsStowable", "IsStowable" ],
721+
"body": "IsStowable()$0"
722+
},
723+
"SimWeapon.Equip(): boolean":
724+
{
725+
"prefix": [ "SimWeapon.Equip", "Equip" ],
726+
"body": "Equip(${SimCharacter})$0"
727+
},
728+
"SimWeapon.EquipStowed(): boolean":
729+
{
730+
"prefix": [ "SimWeapon.EquipStowed", "EquipStowed" ],
731+
"body": "EquipStowed(${SimCharacter})$0"
732+
},
733+
"SimWeapon.ClipAmmo: integer":
734+
{
735+
"prefix": [ "SimWeapon.ClipAmmo", "ClipAmmo" ],
736+
"body": "ClipAmmo$0"
737+
},
738+
"SimWeapon.TotalAmmo: integer":
739+
{
740+
"prefix": [ "SimWeapon.TotalAmmo", "TotalAmmo" ],
741+
"body": "TotalAmmo$0"
742+
},
743+
"SimWeapon.LastFiredTime: float":
744+
{
745+
"prefix": [ "SimWeapon.LastFiredTime", "LastFiredTime" ],
746+
"body": "LastFiredTime$0"
747+
},
748+
"SimWeapon.RateOfFireOverride: float":
749+
{
750+
"prefix": [ "SimWeapon.RateOfFireOverride", "RateOfFireOverride" ],
751+
"body": "RateOfFireOverride$0"
752+
},
753+
568754
// TimeOfDayManager
569755
"TimeOfDayManager.IsAboutToRain(): boolean":
570756
{

0 commit comments

Comments
 (0)