private void HandleRecvChannelLogin(Packet parsed) { ChannelLogin ch = PacketManager.RecvChannelLogin(parsed); if (ClientChannelLoginInfo != null) { ClientChannelLoginInfo(this, new ClientChannelLoginInfoEventArgs(ch)); } }
void c_ClientChannelLoginInfo(object sender, ClientChannelLoginInfoEventArgs e) { Client c = (Client)sender; ChannelLogin ch = e.ChannelLogin; Character cha = characterManager.GetCharacterByCharacterId(e.ChannelLogin.CharacterID); c.MyCharacter = cha; byte[] bufferSendMapID = PacketManager.SendMapID(cha.MapId); c.Send(bufferSendMapID); byte[] bufferSendMapTime = PacketManager.SendMapTime(7, 5, 25, 0); c.Send(bufferSendMapTime); byte[] bufferSendMapLoad2 = PacketManager.SendMapLoad2(); c.Send(bufferSendMapLoad2); byte[] bufferSendMapLoad3 = PacketManager.SendMapLoad3(); c.Send(bufferSendMapLoad3); }
public ClientChannelLoginInfoEventArgs(ChannelLogin ch) { this.channelLogin = ch; }