wiki.sine.space | sinespace

Difference between revisions of "Scripting/SNetworkMessage"

From wiki.sine.space
Jump to: navigation, search
 
(5 intermediate revisions by one other user not shown)
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}}
+
{{ScriptFunction|IDictionary(object,object)|Message|{ get; }|The message body which was sent|5=<i>-- This function gets used by other objects that are subscribed to the network</i><br>
+
gotAMessage = function(arguments)<br>
+
&nbsp;&nbsp;textValue.UIText.Text = "Got a message with the argument " .. arguments.Message["someArgument"];<br>
+
end<br><br>
+
-- View SubscribeToNetwork in [[Scripting/SNetwork]] for full script example.}}
+
 
+
 
+
{{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