Ashasekayi (Talk | contribs) |
Ashasekayi (Talk | contribs) |
||
Line 3: | Line 3: | ||
==Fields== | ==Fields== | ||
{{ScriptFunction|string|Key|{ get; }|The key this message was sent with}} | {{ScriptFunction|string|Key|{ get; }|The key this message was sent with}} | ||
− | {{ScriptFunction|IDictionary(object,object)|Message|{ get; }|The message body which was sent|5= | + | {{ScriptFunction|IDictionary(object,object)|Message|{ get; }|The message body which was sent|5= |
gotAMessage = function(arguments)<br> | gotAMessage = function(arguments)<br> | ||
local sampleMsg = "Got a message with the argument " .. arguments.<b>Message</b>["someArgument"];<br> | local sampleMsg = "Got a message with the argument " .. arguments.<b>Message</b>["someArgument"];<br> | ||
end<br><br> | end<br><br> | ||
− | <i>-- View SubscribeToNetwork in [[Scripting/SNetwork]] for full script example.</i>}} | + | <i>-- View SubscribeToNetwork in [[Scripting/SNetwork]] for a full script example.</i>}} |
{{Scripting Navbox}} | {{Scripting Navbox}} |
The SNetworkMessage class contains a network message sent by another script
The key this message was sent with
The message body which was sent
local sampleMsg = "Got a message with the argument " .. arguments.Message["someArgument"];
end
|