Research portable Memory game | Исследовать портируемую игру Память
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

memory_Context.cpp 432B

5 months ago
123456789101112131415161718192021222324
  1. #include "memory_Context.h"
  2. template <typename T> T memory_Context::field(const std::string &fieldName) {
  3. if (fieldName == "didLaunch") {
  4. return didLaunch;
  5. }
  6. // TODO
  7. return 0;
  8. }
  9. template <typename T> void memory_Context::setField(const std::string &fieldName, T value) {
  10. if (fieldName == "didLaunch") {
  11. didLaunch = value;
  12. }
  13. // TODO
  14. }
  15. memory_Context memory_createContext() {
  16. return memory_Context();
  17. }