PacketHeaders.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. packet = configReader.getStruct("CharSelectProfile",version);
  21. for(int8 i=0;i<24;i++){
  22. packet->setEquipmentByName("equip",0,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,i);
  23. }
  24. }
  25. ~CharSelectProfile(){
  26. safe_delete(packet);
  27. }
  28. PacketStruct* packet;
  29. void SaveData(int16 in_version);
  30. void Data();
  31. int16 size;
  32. };
  33. class LS_CharSelectList : public DataBuffer {
  34. public:
  35. int8 num_characters;
  36. int32 account_id;
  37. EQ2Packet* serialize(int16 version);
  38. void addChar(uchar* data, int16 size);
  39. string char_data;
  40. void loadData(int32 account, vector<CharSelectProfile*> charlist, int16 version);
  41. };
  42. class LS_DeleteCharacterRequest : public DataBuffer{
  43. public:
  44. int32 character_number;
  45. int32 server_id;
  46. int32 spacer;
  47. EQ2_16BitString name;
  48. void loadData(EQApplicationPacket* packet);
  49. };
  50. #endif