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.

25 lines
432B

  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. }