internal static void SendDcoreMessage(string name, JsonMessage msg) { if (s_Inited) { byte[] data = BuildCoreMessage(msg); CenterClientApi.SendByName(name, data, data.Length); } }
internal static void ForwardMessage(string name, byte[] data) { if (s_Inited) { if (null != name && null != data) { CenterClientApi.SendByName(name, data, data.Length); } } }
internal static void SendNodeMessage(string name, NodeMessage msg) { if (s_Inited) { byte[] data = BuildNodeMessage(msg); if (null != name && null != data) { CenterClientApi.SendByName(name, data, data.Length); } } }
public bool Forward(string dest_name, byte[] data) { bool ret = false; if (null != data) { if (world_id_ == 0) { ret = CenterClientApi.SendByName(dest_name, data, data.Length); } else { ret = CenterHubApi.SendByName(world_id_, dest_name, data, data.Length); } } return(ret); }