This repository has been archived by the owner on Jul 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
YSI and smartcmd related completions and snippets (#63)
* Updated mysql completions to R41-2 * Added colandreas completions Requested by DRIFT_HUNTER (http://forum.sa-mp.com/showpost.php?p=3842978&postcount=125) * Added more YSI-related completions - y_commands - y_timers - y_va - y_bit - y_iterate * Added a few YSI-related snippets - y_timers: ptask, task and timer - y_commands: YCMD * Added more YSI-related completions - y_ini - y_classes - y_groups - y_dialog Not included: constants * Added smartcmd completions and snippet
- Loading branch information
1 parent
64e3644
commit a6954ff
Showing
7 changed files
with
270 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<snippet> | ||
<description>y_timers: ptask</description> | ||
<content><![CDATA[ | ||
ptask ${1:name}[${2:delay}](playerid) | ||
{ | ||
${3} | ||
} | ||
]]></content> | ||
<tabTrigger>ptask</tabTrigger> | ||
<scope>source.pawn</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<snippet> | ||
<description>SmartCMD command</description> | ||
<content><![CDATA[ | ||
COMMAND$<{2:flags}>:${1:name}(cmdid, playerid, params[]) { | ||
${4} | ||
return CMD_SUCCESS; | ||
} | ||
]]></content> | ||
<tabTrigger>command</tabTrigger> | ||
<scope>source.pawn</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
{ | ||
"scope": "source.pawn - variable.other.pawn", | ||
"completions": | ||
[ | ||
"CMD_DEFAULT_FLAG", | ||
"CMD_SUCCESS", | ||
"CMD_FAILURE", | ||
"MAX_COMMANDS", | ||
{"trigger": "DoesCommandExist", "contents": "DoesCommandExist(${1:cmdid})"}, | ||
{"trigger": "GetCommandID", "contents": "GetCommandID(${1:const cmd[]})"}, | ||
{"trigger": "GetCommandName", "contents": "GetCommandName(${1:cmdid}, ${2:cmd[]}, ${3:len = sizeof(cmd})"}, | ||
{"trigger": "GetAlternateCommands", "contents": "GetAlternateCommands(${1:cmdid}, ${2:cmdidlist[]})"}, | ||
{"trigger": "IsCommandAlternate", "contents": "IsCommandAlternate(${1:cmdid})"}, | ||
{"trigger": "GetCommandFunctionID", "contents": "GetCommandFunctionID(${1:cmdid})"}, | ||
{"trigger": "GetPointingCommandFunctionID", "contents": "GetPointingCommandFunctionID(${1:cmdid})"}, | ||
{"trigger": "GetPointingCommandID", "contents": "GetPointingCommandID(${1:cmdid})"}, | ||
{"trigger": "GetCommandFunctionName", "contents": "GetCommandFunctionName(${1:cmdid}, ${2:dest[]}, ${3:len = sizeof(dest})"}, | ||
{"trigger": "GetEnabledCommandCount", "contents": "GetEnabledCommandCount()"}, | ||
{"trigger": "GetDisabledCommandCount", "contents": "GetDisabledCommandCount()"}, | ||
{"trigger": "GetTotalCommandCount", "contents": "GetTotalCommandCount()"}, | ||
{"trigger": "EnableCommand", "contents": "EnableCommand(${1:cmdid})"}, | ||
{"trigger": "DisableCommand", "contents": "DisableCommand(${1:cmdid})"}, | ||
{"trigger": "IsCommandEnabled", "contents": "IsCommandEnabled(${1:cmdid})"}, | ||
{"trigger": "SetCommandFlags", "contents": "SetCommandFlags(${1:cmdid}, ${2:flags})"}, | ||
{"trigger": "GetCommandFlags", "contents": "GetCommandFlags(${1:cmdid})"}, | ||
{"trigger": "SetPointingCommandIDToSelf", "contents": "SetPointingCommandIDToSelf(${1:cmdid})"}, | ||
{"trigger": "ReassignCommandFunction", "contents": "ReassignCommandFunction(${1:cmdid}, ${2:const funcname[]}, ${3:bool:updateCID = false}, ${4:bool:updatePFT = false})"}, | ||
{"trigger": "EmulateCommandEx", "contents": "EmulateCommandEx(${1:cmdid}, ${2:playerid}, ${3:params[]})"}, | ||
{"trigger": "EmulateCommand", "contents": "EmulateCommand(${1:playerid}, ${2:cmdtext[]})"}, | ||
{"trigger": "ExecuteCommand", "contents": "ExecuteCommand(${1:const cmd[]}, ${2:command_mode}, ${3:playerid}, ${4:success}, ${5:params[]=\"\"})"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<snippet> | ||
<description>y_timers: task</description> | ||
<content><![CDATA[ | ||
task ${1:name}[${2:delay}]() | ||
{ | ||
${3} | ||
} | ||
]]></content> | ||
<tabTrigger>task</tabTrigger> | ||
<scope>source.pawn</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<snippet> | ||
<description>y_timers: timer</description> | ||
<content><![CDATA[ | ||
timer ${1:name}[${2:delay}](${3:args}) | ||
{ | ||
${4} | ||
} | ||
]]></content> | ||
<tabTrigger>timer</tabTrigger> | ||
<scope>source.pawn</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<snippet> | ||
<description>y_command</description> | ||
<content><![CDATA[ | ||
YCMD:${1:command_name}(playerid, params[], help) | ||
{ | ||
${4} | ||
return 1; | ||
} | ||
]]></content> | ||
<tabTrigger>YCMD</tabTrigger> | ||
<scope>source.pawn</scope> | ||
</snippet> |