GameText.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. // Westwood Studios Pacific.
  21. //
  22. // Confidential Information
  23. // Copyright (C) 2001 - All Rights Reserved
  24. //
  25. //----------------------------------------------------------------------------
  26. //
  27. // Project: RTS 3
  28. //
  29. // File name: GameClient/GameText.h
  30. //
  31. // Created: 11/07/01
  32. //
  33. //----------------------------------------------------------------------------
  34. #pragma once
  35. #ifndef __GAMECLIENT_GAMETEXT_H_
  36. #define __GAMECLIENT_GAMETEXT_H_
  37. //----------------------------------------------------------------------------
  38. // Includes
  39. //----------------------------------------------------------------------------
  40. //----------------------------------------------------------------------------
  41. // Forward References
  42. //----------------------------------------------------------------------------
  43. //----------------------------------------------------------------------------
  44. // Type Defines
  45. //----------------------------------------------------------------------------
  46. //===============================
  47. // GameTextInterface
  48. //===============================
  49. /** Game text interface object for localised text.
  50. */
  51. //===============================
  52. class GameTextInterface
  53. {
  54. public:
  55. virtual ~GameTextInterface() {};
  56. virtual void init( void ) = 0; ///< Initlaizes the text system
  57. virtual const wchar_t * fetch( const char *label ) = 0; ///< Returns the associated labeled unicode text
  58. };
  59. extern GameTextInterface *TheGameText;
  60. extern GameTextInterface* CreateGameTextInterface( void );
  61. //----------------------------------------------------------------------------
  62. // Inlining
  63. //----------------------------------------------------------------------------
  64. #endif // __GAMECLIENT_GAMETEXT_H_