PacketHeaders.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. EQ2Emulator: Everquest II Server Emulator
  3. Copyright (C) 2007 EQ2EMulator Development Team (http://www.eq2emulator.net)
  4. This file is part of EQ2Emulator.
  5. */
  6. #ifndef __PACKET_HEADERS__
  7. #define __PACKET_HEADERS__
  8. #include "../common/types.h"
  9. #include "../common/EQPacket.h"
  10. #include "../common/EQ2_Common_Structs.h"
  11. #include "login_structs.h"
  12. #include "../common/DataBuffer.h"
  13. #include "../common/GlobalHeaders.h"
  14. #include "../common/ConfigReader.h"
  15. #include <vector>
  16. extern ConfigReader configReader;
  17. class CharSelectProfile : public DataBuffer{
  18. public:
  19. CharSelectProfile(int16 version){
  20. deleted = false;
  21. packet = configReader.getStruct("CharSelectProfile",version);
  22. for(int8 i=0;i<24;i++){
  23. packet->setEquipmentByName("equip",0,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,i);
  24. }
  25. }
  26. ~CharSelectProfile(){
  27. safe_delete(packet);
  28. }
  29. PacketStruct* packet;
  30. void SaveData(int16 in_version);
  31. void Data();
  32. int16 size;
  33. bool deleted;
  34. };
  35. class LS_CharSelectList : public DataBuffer {
  36. public:
  37. int8 num_characters;
  38. int32 account_id;
  39. EQ2Packet* serialize(int16 version);
  40. void addChar(uchar* data, int16 size);
  41. string char_data;
  42. void loadData(int32 account, vector<CharSelectProfile*> charlist, int16 version);
  43. };
  44. class LS_DeleteCharacterRequest : public DataBuffer{
  45. public:
  46. int32 character_number;
  47. int32 server_id;
  48. int32 spacer;
  49. EQ2_16BitString name;
  50. void loadData(EQApplicationPacket* packet);
  51. };
  52. #endif