Module body

Source
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
EditorState
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
ModuleAssist
Module-specific assistance during play.
ShowHideAnimationIter
An iterator over the variants of ShowHideAnimation
ThemeIdIter
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.
HoverAnimation
ModuleAssistType
Type of assistance to be shown. This is only set during play and should never be persisted to the database.
ShowHideAnimation
StickerHidden
ThemeId
Theme Ids. Used in various modules See the frontend extension trait for more info

Traits§

BodyConvert
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