Expand description
Module bodies
Modules§
- _groups
- Groups that share types
- card_
quiz - Quiz Game
- cover
- Cover Body.
- drag_
drop - Drag & Drop Body.
- embed
- Embed Body.
- find_
answer - Answer This (Previously Find the Answer)
- flashcards
- Flashcards .
- legacy
- Legacy
- matching
- Matching
- memory
- Memory Game Body.
- poster
- Talking Poster Body.
- resource_
cover - Resource Cover Body.
- tapping_
board - Listen & Learn Body.
- video
- Video Body.
Structs§
- Audio
- Audio
- Editor
State - Generic editor state which must be preserved between sessions Although these are saved to the db, they aren’t relevant for playback
- Image
- Images need id and lib
- Module
Assist - Module-specific assistance during play.
- Show
Hide Animation Iter - An iterator over the variants of ShowHideAnimation
- Theme
IdIter - An iterator over the variants of ThemeId
- Transform
- Visual Transform
- Vec2
- Vector of 2 floats
- Vec3
- Vector of 3 floats
- Vec4
- Vector of 4 floats, also used as a Quaternion
Enums§
- Background
- Background
- Body
- Body kinds for Modules.
- Hover
Animation - Module
Assist Type - Type of assistance to be shown. This is only set during play and should never be persisted to the database.
- Show
Hide Animation - Sticker
Hidden - ThemeId
- Theme Ids. Used in various modules See the frontend extension trait for more info
Traits§
- Body
Convert - These will all error by default. Modules that can be converted between eachother must override The relevant methods
- BodyExt
- Extension trait for interop impl on inner body data
- ModeExt
- Extenstion trait for modes
- StepExt
- This extension trait makes it possible to keep the Step functionality generic and at a higher level than the module itself