private void HandleClanFindCandidates(ParseData pd) { DataReader dr = new DataReader(pd.Data); dr.Seek(4); // skip the cookie ClanCandidatesSearchStatus status = (ClanCandidatesSearchStatus)dr.ReadByte(); int numCandidates = dr.ReadByte(); string[] usernames = new string[numCandidates]; for (int i = 0; i < numCandidates; i++) { usernames[i] = dr.ReadCString(); } ClanCandidatesSearchEventArgs args = new ClanCandidatesSearchEventArgs(status, usernames); args.EventData = pd; OnClanCandidatesSearchCompleted(args); }
public void OnClanCandidatesSearchCompleted(ClanCandidatesSearchEventArgs e) { m_host.OnClanCandidatesSearchCompleted(e); }