public InvokeHandler ( NetworkMessage netMsg ) : bool | ||
netMsg | NetworkMessage | The message object to process. |
return | bool |
private void GenerateError(NetworkConnection conn, int error) { if (handlers.ContainsKey(0x22)) { ErrorMessage message = new ErrorMessage { errorCode = error }; NetworkWriter writer = new NetworkWriter(); message.Serialize(writer); NetworkReader reader = new NetworkReader(writer); conn.InvokeHandler(0x22, reader, 0); } }