Add stubs to KidVid for save/load functionality (TODO).

This commit is contained in:
Stephen Anthony 2022-09-03 22:43:42 -02:30
parent 2296b334dc
commit 087767b17b
2 changed files with 30 additions and 0 deletions

View File

@ -138,6 +138,20 @@ void KidVid::update()
}
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool KidVid::save(Serializer& out) const
{
// TODO: save WAV player state
return Controller::save(out);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool KidVid::load(Serializer& in)
{
// TODO: load WAV player state
return Controller::load(in);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void KidVid::openSampleFiles()
{

View File

@ -67,6 +67,22 @@ class KidVid : public Controller
*/
void update() override;
/**
Saves the current state of this controller to the given Serializer.
@param out The serializer device to save to.
@return The result of the save. True on success, false on failure.
*/
bool save(Serializer& out) const override;
/**
Loads the current state of this controller from the given Serializer.
@param in The serializer device to load from.
@return The result of the load. True on success, false on failure.
*/
bool load(Serializer& in) override;
/**
Returns the name of this controller.
*/