mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
PINK: Added findSequence method to Sequencer
This commit is contained in:
parent
c87a392e16
commit
fed63e22ec
@ -23,6 +23,7 @@
|
||||
|
||||
#include <common/debug.h>
|
||||
#include "sequencer.h"
|
||||
#include "sequence.h"
|
||||
#include "engines/pink/archive.h"
|
||||
|
||||
namespace Pink {
|
||||
@ -39,4 +40,11 @@ void Sequencer::deserialize(Archive &archive) {
|
||||
|
||||
}
|
||||
|
||||
Sequence *Sequencer::findSequence(const Common::String &name) {
|
||||
return *Common::find_if(_sequences.begin(), _sequences.end(), [&name]
|
||||
(Sequence* sequence) {
|
||||
return name == sequence->getName();
|
||||
});
|
||||
}
|
||||
|
||||
} // End of namespace Pink
|
@ -37,6 +37,7 @@ public:
|
||||
Sequencer(GamePage *page);
|
||||
|
||||
virtual void deserialize(Archive &archive);
|
||||
Sequence* findSequence(const Common::String &name);
|
||||
|
||||
private:
|
||||
//context
|
||||
|
Loading…
Reference in New Issue
Block a user