Difference between revisions of "NDGIS"
(17 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<center><p style="width: 60%">[[NDGIA|A]] [[NDGIB|B]] [[NDGIC|C]] [[NDGID|D]] [[NDGIE|E]] [[NDGIF|F]] [[NDGIG|G]] [[NDGIH|H]] [[NDGII|I]] [[NDGIJ|J]] [[NDGIK|K]] [[NDGIL|L]] [[NDGIM|M]] [[NDGIN|N]] [[NDGIO|O]] [[NDGIP|P]] [[NDGIQ|Q]] [[NDGIR|R]] [[NDGIS|S]] [[NDGIT|T]] [[NDGIU|U]] [[NDGIV|V]] [[NDGIW|W]] [[NDGIX|X]] [[NDGIY|Y]] [[NDGIZ|Z]]</p></center> | <center><p style="width: 60%">[[NDGIA|A]] [[NDGIB|B]] [[NDGIC|C]] [[NDGID|D]] [[NDGIE|E]] [[NDGIF|F]] [[NDGIG|G]] [[NDGIH|H]] [[NDGII|I]] [[NDGIJ|J]] [[NDGIK|K]] [[NDGIL|L]] [[NDGIM|M]] [[NDGIN|N]] [[NDGIO|O]] [[NDGIP|P]] [[NDGIQ|Q]] [[NDGIR|R]] [[NDGIS|S]] [[NDGIT|T]] [[NDGIU|U]] [[NDGIV|V]] [[NDGIW|W]] [[NDGIX|X]] [[NDGIY|Y]] [[NDGIZ|Z]]</p></center> | ||
<p style="color: #DDDD88;font-size: 22px;width:60%;margin: 0 auto">Global Functions & Examples</p> | <p style="color: #DDDD88;font-size: 22px;width:60%;margin: 0 auto">Global Functions & Examples</p> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">SaveSeedGroup()</p>Params<br>seedgroup - seed group to save<br>bool - Should this group be excluded from the list of seed groups that are initially loaded<br>seedobjectsarray - Array of seed object data in the side table format to the right. || Save seed objects for a specific seed group<br>table_template = {<br> | ||
+ | Template = templateId,<br> | ||
+ | Position = pos,<br> | ||
+ | Rotation = rot,<br> | ||
+ | Scale = scale,<br> | ||
+ | ObjVarOverrides = { Name = Value, Name = Value ... },<br> | ||
+ | SharedStateOverrides = { Name = Value, Name = Value ... },<br> | ||
+ | }. | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">SaveTemplateData()</p>Params<br>templatedata - template table data<br>categoryname - category name<br>templatename - template name<br>Returns<br>bool - true if save was successful, false if not || Save template data to a template. | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">SendMessageToPlugin()</p>Params<br>pluginname - plug-in name to send to<br>eventid - event identifier name<br>(...) One or more object arguments to be passed to the plug-in || Sends a message to a C# gameplay plugin. | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">SendRemoteMessage()</p>Params<br>regionaddress - target region address<br>location - target location<br>range - range around target location<br>eventid - message to event handler<br>object - serializable event parameters || Sends a message to all objects at a location on another region server. | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">SendRequestToPlugin()</p>Params<br>pluginname - plug-in name to send to<br>(...) One or more object arguments to be passed to the plug-in<br>Returns<br>a single value, or an array of values || Sends a direct request to a C# gameplay plugin. | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">ServerTimeMs()</p>Returns<br>number - server time in milliseconds || Return the current server time in milliseconds. | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">SetEvent()</p>Params<br>key - key unique key identifier<br>value - value string value (ex JSON string) || Redis set command, will create if doesn't exist and overwrite what does exist at given key. | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">SetLuaDebugLevel()</p>Params<br>debuglevel - debug level (All,Off,Error,Warning,Information,Verbose) || Set the debug log output level for the lua environment. | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">SetLuaProfilingEnabled()</p>Params<br>bool - isenabled || Enabled/disable lua profiling. | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">SortedSetEvent()</p>Params<br>key - key unique key identifier<br>value - value string value (generally JSON string) || Redis database Sorted Set with automatic timestamp score. | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">SortedSetScoreEvent()</p>Params<br>key - key unique key identifier<br>value - value string value(generally JSON string)<br>number - value score value || Redis database Sorted Set with an explicit score value. | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> | ||
+ | |||
+ | <center> | ||
+ | {| class="wikitable" | style="width: 60%" | ||
+ | |- | ||
+ | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">ShutdownServer()</p> || Shuts the server down. | ||
+ | |} | ||
+ | </center> | ||
+ | <p style="width: 60%;margin: 0 auto">Example</p> | ||
+ | <div style="width:60%;margin: 0 auto"> | ||
+ | CODE EXAMPLE BLOCK | ||
+ | </div> |
Latest revision as of 06:39, 24 November 2019
Global Functions & Examples
SaveSeedGroup() Paramsseedgroup - seed group to save bool - Should this group be excluded from the list of seed groups that are initially loaded seedobjectsarray - Array of seed object data in the side table format to the right. |
Save seed objects for a specific seed group table_template = { Template = templateId, |
Example
CODE EXAMPLE BLOCK
SaveTemplateData() Paramstemplatedata - template table data categoryname - category name templatename - template name Returns bool - true if save was successful, false if not |
Save template data to a template. |
Example
CODE EXAMPLE BLOCK
SendMessageToPlugin() Paramspluginname - plug-in name to send to eventid - event identifier name (...) One or more object arguments to be passed to the plug-in |
Sends a message to a C# gameplay plugin. |
Example
CODE EXAMPLE BLOCK
SendRemoteMessage() Paramsregionaddress - target region address location - target location range - range around target location eventid - message to event handler object - serializable event parameters |
Sends a message to all objects at a location on another region server. |
Example
CODE EXAMPLE BLOCK
SendRequestToPlugin() Paramspluginname - plug-in name to send to (...) One or more object arguments to be passed to the plug-in Returns a single value, or an array of values |
Sends a direct request to a C# gameplay plugin. |
Example
CODE EXAMPLE BLOCK
ServerTimeMs() Returnsnumber - server time in milliseconds |
Return the current server time in milliseconds. |
Example
CODE EXAMPLE BLOCK
SetEvent() Paramskey - key unique key identifier value - value string value (ex JSON string) |
Redis set command, will create if doesn't exist and overwrite what does exist at given key. |
Example
CODE EXAMPLE BLOCK
SetLuaDebugLevel() Paramsdebuglevel - debug level (All,Off,Error,Warning,Information,Verbose) |
Set the debug log output level for the lua environment. |
Example
CODE EXAMPLE BLOCK
SetLuaProfilingEnabled() Paramsbool - isenabled |
Enabled/disable lua profiling. |
Example
CODE EXAMPLE BLOCK
SortedSetEvent() Paramskey - key unique key identifier value - value string value (generally JSON string) |
Redis database Sorted Set with automatic timestamp score. |
Example
CODE EXAMPLE BLOCK
SortedSetScoreEvent() Paramskey - key unique key identifier value - value string value(generally JSON string) number - value score value |
Redis database Sorted Set with an explicit score value. |
Example
CODE EXAMPLE BLOCK
ShutdownServer() |
Shuts the server down. |
Example
CODE EXAMPLE BLOCK