/// <summary> /// Used to send a <see cref="Networking.IMessage"/> into the communication system. /// </summary> /// <param name="message">The <see cref="Networking.IMessage"/> to send.</param> public void SendMessage(Networking.IMessage message) { if (Client.State == Networking.ChannelStates.Open) { Client.SendMessage(message); } }
protected override string ExecuteNetworking(string[] InArguments, Networking.IMessage InMessage) { var Message = (SetPlayerAttrMessage)InMessage; Message.AttrType = (int)(PlayerAttrType)StringToEnum(InArguments[0], typeof(PlayerAttrType)); Message.Value = SmartConvert <int>(InArguments[1]); return(Done); }
/// <summary> /// Will be called when a <see cref="Networking.IMessage"/> is received. /// </summary> /// <param name="message">The message received from the communication system.</param> protected abstract void OnMessageReceived(Networking.IMessage message);