public static BaseEventArgs GetEmpty(BattleNetClient.ParseData eventData) { BaseEventArgs e = new BaseEventArgs(); e.EventData = eventData; return(e); }
private string Serialize(BaseEventArgs args) { StringBuilder sb = new StringBuilder(); using (StringWriter sw = new StringWriter(sb)) using (XmlTextWriter xtw = new XmlTextWriter(sw)) { ArgsSerializer.WriteObject(xtw, args); } return sb.ToString(); }
public static BaseEventArgs GetEmpty(BattleNetClient.ParseData eventData) { BaseEventArgs e = new BaseEventArgs(); e.EventData = eventData; return e; }
//public ChatEvent() { } public ChatEvent(int id, BaseEventArgs args) { m_id = id; m_args = args; }
partial void FreeArgumentResources(BaseEventArgs e);
partial void FreeArgumentResources(BaseEventArgs e) { if (e == null) return; BattleNetClient.ParseData data = e.EventData as BattleNetClient.ParseData; if (data != null && data.Data != null) BattleNetClientResources.IncomingBufferPool.FreeBuffer(data.Data); }