Example #1
0
 /// <summary>
 /// Send Cluster Command with Command parameters and Command name
 /// </summary>
 /// <param name="CommandName">Name of the Command name</param>
 /// <param name="multiCommandAllow">Whether multi Command instances with the same Command Name can be raised.Default value is true.</param>
 /// <param name="paras">The first element of each Name-Value Pair must be string which is the name of the parameter,then follow the parameter value e.g. RaiseClusterCommand("CommandName",true,"paraName1",1.0f,"paraName2",2.0f)</param>
 static public void SendClusterCommand(string CommandName, bool multiCommandAllow, params object[] paras)
 {
     _clusterCommandMgr.addClusterCommand(ClusterCommand.create(CommandName, paras), multiCommandAllow);
 }
Example #2
0
 /// <summary>
 ///Send Cluster Command with Command parameters and Command name
 /// </summary>
 /// <param name="CommandName">Name of the Command name</param>
 /// <param name="paras">The first element of each Name-Value Pair must be string which is the name of the parameter,then follow the parameter value e.g. RaiseClusterCommand("CommandName","paraName1",1.0f,"paraName2",2.0f)</param>
 static public void SendClusterCommand(string CommandName, params object[] paras)
 {
     _clusterCommandMgr.addClusterCommand(ClusterCommand.create(CommandName, paras));
 }