Default parameters of PluginBase.BroadcastEvent(byte code, Dictionary< byte, object >data)
bart
✭
Hi got question to "void PluginBase.BroadcastEvent(byte code, Dictionary< byte, object >data)".
Cannot find in documentation what is default setting of this call compare to:" void IPluginHost.BroadcastEvent(byte target, int senderActor, byte targetGroup, byte evCode, Dictionary data, byte cacheOp, SendParameters sendParameters = null);"
Especially i'm interested in setting of reliable for it. Is it by default Unreliable?. is there a way to force it to be reliable? Or only way is use the version with sendParameters and set it there.
Cannot find in documentation what is default setting of this call compare to:" void IPluginHost.BroadcastEvent(byte target, int senderActor, byte targetGroup, byte evCode, Dictionary data, byte cacheOp, SendParameters sendParameters = null);"
Especially i'm interested in setting of reliable for it. Is it by default Unreliable?. is there a way to force it to be reliable? Or only way is use the version with sendParameters and set it there.
0
Comments
-
hi, @bart
By default this method sends reliable event to all from actor 0(Server)
btw, you have source code, so you may take a look. if you downloaded only Plugin SDK, you need to download full server sdk. all sources are there.
@JohnTube is documentation master and he may say for sure whether we have such docs or not
best,
ilya0 -
hi @bart
Thank you for choosing Photon!
here is the code:#region Helpers /// <summary> /// Broadcast event to all actors joined to the room. /// </summary> /// <param name="code">Event code.</param> /// <param name="data">Event data.</param> protected void BroadcastEvent(byte code, Dictionary<byte, object> data) { this.PluginHost.BroadcastEvent(ReciverGroup.All, 0, 0, code, data, 0); } #endregion
0