data_game.h 600 B

123456789101112131415161718192021222324
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. #include "data/data_photo.h"
  9. #include "data/data_document.h"
  10. struct GameData {
  11. GameData(not_null<Data::Session*> owner, const GameId &id);
  12. const not_null<Data::Session*> owner;
  13. GameId id = 0;
  14. uint64 accessHash = 0;
  15. QString shortName;
  16. QString title;
  17. QString description;
  18. PhotoData *photo = nullptr;
  19. DocumentData *document = nullptr;
  20. };