-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsprak.sublime-completions
136 lines (125 loc) · 12.2 KB
/
sprak.sublime-completions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{
"scope": "source.sprak",
"completions":
[
{ "trigger": "Sebastian\tThe name of the player charicter", "contents": "Sebastian" },
{ "trigger": "OnHack\t", "contents": "void OnHack(string name){\n\t$0\n}" },
{ "trigger": "OnIntruder\t", "contents": "void OnIntruder(string name){\n\t$0\n}" },
{ "trigger": "Count\tCount the number of elements in an array", "contents": "Count(${0:array})" },
{ "trigger": "Range\tCreate a range of numbers from 'min' to (and including) 'max'", "contents": "Range(${1:min}, ${0:max})" },
{ "trigger": "GetIndexes\tCreate a new array that contains the indexes of another array", "contents": "GetIndexes(${0:array})" },
{ "trigger": "Remove\tRemove an element from an array", "contents": "Remove(${1:array}, ${0:position})" },
{ "trigger": "RemoveAll\tRemove all elements from an array", "contents": "RemoveAll(${0:array})" },
{ "trigger": "HasIndex\tCheck if an index is in the array", "contents": "HasIndex(${1:array}, ${0:key})" },
{ "trigger": "Append\tAdd an element to the end of an array", "contents": "Append(${1:array}, ${0:element})" },
{ "trigger": "Type\tGet the type of something (returns a string)", "contents": "Type(${0:value})" },
{ "trigger": "Round\tRound a number to the nearest integer", "contents": "Round(${0:x})" },
{ "trigger": "Int\tRemove the decimals of a float", "contents": "Int(${0:x})" },
{ "trigger": "Mod\tGet the remainder of x / y", "contents": "Mod(${1:x}, ${0:y})" },
{ "trigger": "%\tGet the remainder of x / y", "contents": "Mod(${1:x}, ${0:y})" },
{ "trigger": "Info\tGet information about the system", "contents": "Info()" },
{ "trigger": "Random\tGet a random number between 0.0 and 1.0", "contents": "Random()" },
{ "trigger": "GetUser\tGet the name of who is using the computer, if any", "contents": "GetUser()" },
{ "trigger": "Name\tGet the name of the computer", "contents": "Name()" },
{ "trigger": "Time\tGet the total time as a float", "contents": "Time()" },
{ "trigger": "Width\tGet the screen width", "contents": "Width()" },
{ "trigger": "Height\tGet the screen height", "contents": "Height()" },
{ "trigger": "GetHour\tGet the current hour", "contents": "GetHour()" },
{ "trigger": "GetMinute\tGet the current minute", "contents": "GetMinute()" },
{ "trigger": "Sleep\tPause the master program", "contents": "Sleep(${0:seconds})" },
{ "trigger": "Quit\tStop the program", "contents": "Quit()" },
{ "trigger": "CharToInt\tConvert a single character to a numeric value, 'a' equals 0", "contents": "CharToInt(${0:character})" },
{ "trigger": "IntToChar\tConvert a number to a character, 0 equals 'a'", "contents": "IntToChar(${0:number})" },
{ "trigger": "ClearText\tRemove all text from the screen", "contents": "ClearText()" },
{ "trigger": "Print\tPrint text to the screen", "contents": "Print(${0:text})" },
{ "trigger": "Say\tSay something through speaker. (via the object)", "contents": "Say(${0:text})" },
{ "trigger": "PlaySound\tPlay a sound", "contents": "PlaySound(${0:soundName})" },
{ "trigger": "Pitch\tSet the pitch of the sound", "contents": "Pitch(${0:pitch})" },
{ "trigger": "Sin\tThe sinus function", "contents": "Sin(${0:x})" },
{ "trigger": "Cos\tThe cosinus function", "contents": "Cos(${0:x})" },
{ "trigger": "PrintS\tPrint text without skipping to a new line afterwards", "contents": "PrintS(${0:text})" },
{ "trigger": "Input\tDisplay a prompt and receive text input from the keyboard", "contents": "Input(${0:prompt})" },
{ "trigger": "Line\tDraw a line on the screen", "contents": "Line(${1:x1}, ${0:y1}, ${2:x2}, ${3:y2})" },
{ "trigger": "Text\tDraw text in a specific place", "contents": "Text(${1:x}, ${0:y}, ${2:text})" },
{ "trigger": "Rect\tDraw a rectangle on the screen", "contents": "Rect(${1:x1}, ${0:y1}, ${2:x2}, ${3:y2})" },
{ "trigger": "DisplayGraphics\tClear the screen and display graphical elements", "contents": "DisplayGraphics()" },
{ "trigger": "Color\tSet the color to draw or print text with", "contents": "Color(${1:r}, ${0:g}, ${2:b})" },
{ "trigger": "Repeat\tKeep a value between between 0 and an upper bound", "contents": "Repeat(${1:x}, ${0:bound}" },
{ "trigger": "HSVtoRGB\tHue, Saturation, Value -> [r, g, b]", "contents": "HSVtoRGB(${1:H},${0:S},${2:V})" },
{ "trigger": "RGBToHSV\t[r, g, b] -> Hue, Saturation, Value", "contents": "RGBToHSV(${1:r},${0:g},${2:b})" },
{ "trigger": "Lines\tno ingame desc likely a list of [x,y] objects to denote points on a poly line", "contents": "Lines(${0:points})" },
{ "trigger": "GetConnections\tGet a list of all connections (list of names)", "contents": "GetConnections()" },
{ "trigger": "Slurp\tUse with caution", "contents": "Slurp()" },
{ "trigger": "Connect\tNo ingame desc", "contents": "Connect(${0:name})" },
{ "trigger": "DisconnectAll\tRemove all connections", "contents": "DisconnectAll()" },
{ "trigger": "StringContains\tChecks whether a string contains a substring", "contents": "StringContains(${1:string}, ${0:substring})" },
{ "trigger": "MovePerson\tMove an intruder in the room to the position of another thing", "contents": "MovePerson(${1:name}, ${0:target} )" },
{ "trigger": "ZapPerson\tZap an intruder in the room (will make them fall asleep)", "contents": "ZapPerson(${0:name})" },
{ "trigger": "RestoreCode\tResets code to default state", "contents": "RestoreCode(${0:name})" },
{ "trigger": "Broadcast\tBroadcast a message, Use with caution.", "contents": "Broadcast(${0:pMessage})" },
{ "trigger": "IsKeyPressed\tIs a key pressed? (left/right/down/up/space)", "contents": "IsKeyPressed(${0:key})" },
{ "trigger": "HasFloppy\tIs there a floppy in the drive?", "contents": "HasFloppy()" },
{ "trigger": "LoadData\tLoad data from the floppy, split by lines", "contents": "LoadData()" },
{ "trigger": "ClearData\tClear all data on the floppy", "contents": "ClearData()" },
{ "trigger": "SaveData\tSave data to the floppy by appending a line at the end", "contents": "SaveData(${0:data})" },
{ "trigger": "BootFromFloppy\tRestart the computer but run the code on the floppy instead", "contents": "BootFromFloppy()" },
{ "trigger": "SaveMemory\tSave data to the given memory key", "contents": "SaveMemory(${1:key}, ${0:data})" },
{ "trigger": "LoadMemory\tLoad a specific data previously saved with SaveMemory", "contents": "LoadMemory(${0:key})" },
{ "trigger": "EraseMemory\tErase a specific data previously saved with SaveMemory", "contents": "EraseMemory(${0:key})" },
{ "trigger": "HasMemory\tChecks if a specific data was set", "contents": "HasMemory(${0:key})" },
{ "trigger": "GetMemories\tGet all keys saved with SaveMemory", "contents": "GetMemories()" },
{ "trigger": "ClearMemories\tRemoves all keys saved with SaveMemory", "contents": "ClearMemories()" },
/* Screwdrivers */
{ "trigger": "SetMhz\tSet the speed of the computer you use the screwdriver on. (Max 500)", "contents": "SetMhz(${0:Mhz})" },
{ "trigger": "EnableAPI\tEnable an API", "contents": "EnableAPI(${0:name})" },
{ "trigger": "SetMaxTime\tSet the maximum execution time for the computer", "contents": "SetMaxTime(${0:maxTime})" },
/* Drinks */
{ "trigger": "Speed\tChange the speed of the drinker", "contents": "Speed(${0:d})" },
{ "trigger": "Charisma\tChange the Charisma of the drinker", "contents": "Charisma(${0:d})" },
{ "trigger": "Smelliness\tChange the Smelliness of the drinker", "contents": "Smelliness(${0:d})" },
{ "trigger": "Sleepiness\tChange the Sleepiness of the drinker", "contents": "Sleepiness(${0:d})" },
{ "trigger": "Drunkenness\tChange the Drunkenness of the drinker", "contents": "Drunkenness(${0:d})" },
{ "trigger": "Drink\tJust lower the amount of liquid", "contents": "Drink(${0:d})" },
{ "trigger": "Corruption\tUndocumented effect", "contents": "Corruption(${0:amount})" },
{ "trigger": "IsUser\tTest if the drinker has a certain name", "contents": "IsUser(${0:name})" },
{ "trigger": "GetRoom\tGet the room of the drinker", "contents": "GetRoom()" },
{ "trigger": "RemoteFunctionCall\tCall remote function on connected objects", "contents": "RemoteFunctionCall(${1:receiverIndex}, ${0:functionName}, ${2:arguments})" },
/* Drugs / Food */
{ "trigger": "Trippy\t\"Trippy\"", "contents": "Trippy()" },
{ "trigger": "TurnLeft\tTurn left", "contents": "TurnLeft()" },
{ "trigger": "TurnRight\tTurn right", "contents": "TurnRight()" },
{ "trigger": "FastForward\tMakes time appear to go faster", "contents": "FastForward()" },
{ "trigger": "Move\tMove forward one step", "contents": "Move()" },
{ "trigger": "QuickBoost\tGet a quick energy boost", "contents": "QuickBoost()" },
/* Keys and some computers not sure which yet */
{ "trigger": "Unlock\tUnlock, returns true on success", "contents": "Unlock(${0:code})" },
{ "trigger": "Lock\tLock, returns true on success", "contents": "Lock(${0:code})" },
{ "trigger": "Toggle\tLock or unlock depending on if the door is locked", "contents": "Toggle(${0:code})" },
/* Radio */
{ "trigger": "Blip\tMake a blip sound", "contents": "Blip()" },
{ "trigger": "GetChannel\tGet the nr of the current channel", "contents": "GetChannel()" },
{ "trigger": "SetChannel\tSet the channel", "contents": "SetChannel(${0:newChannel})" },
{ "trigger": "TurnOffSound\tExactly what it says on the tin", "contents": "TurnOffSound()" },
{ "trigger": "TurnOnSound\tExactly what it says on the tin", "contents": "TurnOnSound()" },
/* Hacking Device */
{ "trigger": "Log\t'Log' (No other text ingame)", "contents": "Log()" },
/* Teleportation Device */
{ "trigger": "Position\tGet the coordinates of your current position", "contents": "Position()" },
{ "trigger": "Teleport\tTeleport to another position in the same room. Returns an error (can't read please report in issue on github what it says if you can)", "contents": "Teleport(${1:x}, ${0:y})" },
{ "trigger": "SetWorldPosition\tTeleport to another position anywhere in the world, returns stat(can't read please report in issue on github what it says if you can)", "contents": "SetWorldPosition(${1:room}, ${0:x}, ${2:y})" },
/* Templates
{ "trigger": "\t", "contents": "(${0:x})" },
{ "trigger": "\t", "contents": "(${0:x})" },
{ "trigger": "\t", "contents": "(${0:x})" },
{ "trigger": "\t", "contents": "(${0:x})" },
{ "trigger": "\t", "contents": "(${0:x})" },
{ "trigger": "\t", "contents": "(${0:x})" },
{ "trigger": "\t", "contents": "(${0:x})" },
{ "trigger": "\t", "contents": "(${0:x})" },
{ "trigger": "\t", "contents": "(${0:x})" },
{ "trigger": "\t", "contents": "(${0:x})" },
{ "trigger": "\t", "contents": "(${0:x})" },
{ "trigger": "\t", "contents": "(${0:x})" },
*/
]
}