Skip to content

Save summary data for entire session - #73

Merged
K-Meech merged 12 commits into
mainfrom
km/data-structure
Apr 30, 2026
Merged

K-Meech merged 12 commits into
mainfrom
km/data-structure

Conversation

@K-Meech

@K-Meech K-Meech commented Apr 29, 2026

Copy link
Copy Markdown
Collaborator

For #20

This PR adds a new SessionSummary.csv file with one row per session. Each session records which of the games were / were not played. (see the excel Session_Summary tab for required columns). Note: I haven't added Participant ID, as I think we were planning to fetch this from the login screen (which isn't implemented yet?)

As this csv file is a summary of many games (rather than data about one game), I re-structured some of the files:

  • There are now two abstract base classes for saved data: Data (that only has date / start time / end time), and GameData which inherits from this and adds gameCompleted.
  • SessionData (the class representing a row from the SessionSummary file) inherits from Data, while all the ones for specific mini-games inherit from GameData.
  • To match this, I had to split SaveData into: SaveData (handles generic saving of any Data) and SaveGameData (has additional methods specific to mini-games, like fetching only completed games)
  • As we have more files relating to file saving now, I moved relevant scripts into a sub-dir called SaveData
  • To capture session info on application start / end, there's a new CaptureSessionData script which sits on an empty object in the MenuScreen scene.

@thompson318 thompson318 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and works for me. 3 comments/suggestions.

@K-Meech

K-Meech commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks for the review @thompson318 ! I'll send David an email to check what he'd prefer for these points.

@K-Meech

K-Meech commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator Author

@thompson318 I heard back from David - I put a summary of his responses on the issue. I made your suggested changes:

  • included seconds in the session duration measure. As startTime / endTime use hh:mm:ss format, I figured I would us the same here for easy comparison.
  • Changed bool fields to int to capture the number of times each game is played.
  • Updated variable names to match changes above + added 'complete' to make it clear that partial games are excluded

Could you take a quick look - and check that all looks good? Thanks 😄

@thompson318 thompson318 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and does what David wanted I think.

@K-Meech
K-Meech merged commit ef20286 into main Apr 30, 2026
1 check passed
@K-Meech
K-Meech deleted the km/data-structure branch April 30, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants