PacketHeaders.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. printf("GetCharSelectProfile\n");
  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. };
  34. class LS_CharSelectList : public DataBuffer {
  35. public:
  36. int8 num_characters;
  37. int32 account_id;
  38. EQ2Packet* serialize(int16 version);
  39. void addChar(uchar* data, int16 size);
  40. string char_data;
  41. void loadData(int32 account, vector<CharSelectProfile*> charlist, int16 version);
  42. };
  43. class LS_DeleteCharacterRequest : public DataBuffer{
  44. public:
  45. int32 character_number;
  46. int32 server_id;
  47. int32 spacer;
  48. EQ2_16BitString name;
  49. void loadData(EQApplicationPacket* packet);
  50. };
  51. #endif