예제 #1
0
        public static BaseEventArgs GetEmpty(BattleNetClient.ParseData eventData)
        {
            BaseEventArgs e = new BaseEventArgs();

            e.EventData = eventData;
            return(e);
        }
예제 #2
0
 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();
 }
예제 #3
0
 public static BaseEventArgs GetEmpty(BattleNetClient.ParseData eventData)
 {
     BaseEventArgs e = new BaseEventArgs();
     e.EventData = eventData;
     return e;
 }
예제 #4
0
파일: ChatEvent.cs 프로젝트: Mofsy/jinxbot
    //public ChatEvent() { }

    public ChatEvent(int id, BaseEventArgs args)
    {
        m_id = id;
        m_args = args;
    }
예제 #5
0
 partial void FreeArgumentResources(BaseEventArgs e);
예제 #6
0
        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);
        }