public void RegisterNetworkEvent(Common code, NetworkDelegate handler) { if (handler == null) { if (networkEvents.ContainsKey(code)) { networkEvents.Remove(code); } return; } if (!networkEvents.ContainsKey(code)) { networkEvents.Add(code, handler); } else { networkEvents[code] = handler; } }
public Request(string url, NetworkDelegate del, byte[] bytes, Dictionary <string, string> header) : this(url, del, bytes) { this.header = header; }
public Request(string url, NetworkDelegate del, byte[] bytes) : this(url, del) { this.bytes = bytes; }
public Request(string url, NetworkDelegate del, WWWForm form) : this(url, del) { this.form = form; }
// Constructors public Request(string url, NetworkDelegate del) { this.url = url; this.del = del; }