GameSpyPersistentStorage.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. ** Command & Conquer Generals(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. // (c) 2001-2003 Electronic Arts Inc. //
  21. // //
  22. ////////////////////////////////////////////////////////////////////////////////
  23. // FILE: GameSpyPersistentStorage.h //////////////////////////////////////////////////////
  24. // Generals GameSpy Persistent Storage
  25. // Author: Matthew D. Campbell, March 2002
  26. #pragma once
  27. #ifndef __GAMESPYPersistentStorage_H__
  28. #define __GAMESPYPersistentStorage_H__
  29. class GameSpyPlayerInfoInterface : public SubsystemInterface
  30. {
  31. public:
  32. virtual ~GameSpyPlayerInfoInterface() { };
  33. virtual void init( void ) = 0;
  34. virtual void reset( void ) = 0;
  35. virtual void update( void ) = 0;
  36. virtual void setLocale( AsciiString locale, Bool setOnServer = true ) = 0;
  37. virtual AsciiString getLocale( void ) = 0;
  38. virtual void setWins( Int wins, Bool setOnServer = true ) = 0;
  39. virtual Int getWins( void ) = 0;
  40. virtual void setLosses( Int losses, Bool setOnServer = true ) = 0;
  41. virtual Int getLosses( void ) = 0;
  42. virtual void readFromServer( void ) = 0;
  43. virtual void threadReadFromServer( void ) = 0;
  44. virtual void threadSetLocale( AsciiString val ) = 0;
  45. virtual void threadSetWins ( AsciiString val ) = 0;
  46. virtual void threadSetLosses( AsciiString val ) = 0;
  47. };
  48. GameSpyPlayerInfoInterface *createGameSpyPlayerInfo( void );
  49. extern GameSpyPlayerInfoInterface *TheGameSpyPlayerInfo;
  50. #endif // __GAMESPYPersistentStorage_H__