|
|
Line 1: |
Line 1: |
− | The SNetworkMessage class contains a network message sent by another script
| + | This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/snetworkmessagelua |
− | | + | |
− | ==Fields==
| + | |
− | {{ScriptFunction|string|Key|{ get; }|The key this message was sent with|5=
| + | |
− | getKey = function(arguments)<br>
| + | |
− | local sampleKey = "The message key is " .. arguments.<b>Key</b>;<br>
| + | |
− | end<br><br>}}
| + | |
− | | + | |
− | {{ScriptFunction|IDictionary(object,object)|Message|{ get; }|The message body which was sent|5=
| + | |
− | gotAMessage = function(arguments)<br>
| + | |
− | local sampleMsg = "Got a message with the argument " .. arguments.<b>Message</b>["someArgument"];<br>
| + | |
− | end<br><br>
| + | |
− | <i>-- View SubscribeToNetwork in [[Scripting/SNetwork]] for a full script example.</i>}}
| + | |
− | | + | |
− | | + | |
− | {{Scripting Navbox}}
| + | |
Latest revision as of 07:02, 19 September 2022
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/types/snetworkmessagelua