private void HandleRecvStatRequest(Packet parsed) { StatRequestInfo sr = PacketManager.RecvStatRequest(parsed); if (ClientSpawnStatLoadInfo != null) { ClientSpawnStatLoadInfo(this, new ClientStatLoadEventArgs(sr)); } }
void c_ClientSpawnStatLoadInfo(object sender, ClientStatLoadEventArgs e) { Client c = (Client)sender; StatRequestInfo sr = e.Info; //Character ch = channelManager.GetCharacterByCharacterId(sr.CharacterID); byte[] bufferSendStats = PacketManager.SendSpawnStats(c.MyCharacter); c.Send(bufferSendStats); }
public ClientStatLoadEventArgs(StatRequestInfo Stats) { this.sr = Stats; }