WOLGameOptions.cpp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /******************************************************************************
  19. *
  20. * FILE
  21. * $Archive: /Commando/Code/WWOnline/WOLGameOptions.cpp $
  22. *
  23. * DESCRIPTION
  24. *
  25. * PROGRAMMER
  26. * $Author: Denzil_l $
  27. *
  28. * VERSION INFO
  29. * $Revision: 4 $
  30. * $Modtime: 9/20/01 6:22p $
  31. *
  32. ******************************************************************************/
  33. #include "WOLGameOptions.h"
  34. namespace WWOnline {
  35. /******************************************************************************
  36. *
  37. * NAME
  38. *
  39. * DESCRIPTION
  40. *
  41. * INPUTS
  42. *
  43. * RESULT
  44. *
  45. ******************************************************************************/
  46. GameOptionsMessage::GameOptionsMessage(const WOL::User* user, const WOL::Channel* channel,
  47. const char* options, bool isPrivate) :
  48. mOptions(options),
  49. mIsPrivate(isPrivate)
  50. {
  51. if (user)
  52. {
  53. memcpy(&mUser, user, sizeof(mUser));
  54. }
  55. else
  56. {
  57. memset(&mUser, 0, sizeof(mUser));
  58. }
  59. if (channel)
  60. {
  61. memcpy(&mChannel, &channel, sizeof(mChannel));
  62. }
  63. else
  64. {
  65. memset(&mChannel, 0, sizeof(mChannel));
  66. }
  67. }
  68. /******************************************************************************
  69. *
  70. * NAME
  71. *
  72. * DESCRIPTION
  73. *
  74. * INPUTS
  75. *
  76. * RESULT
  77. *
  78. ******************************************************************************/
  79. GameOptionsMessage::~GameOptionsMessage()
  80. {
  81. }
  82. } // namespace WWOnline