36 std::shared_ptr<Promise>
promise()
const;
40 spimpl::unique_impl_ptr<ThreadPrivate> impl;
The IEngine interface provides an API for running Scratch projects.
Definition iengine.h:41
The Promise class represents the eventual completion of an asynchronous operation.
Definition promise.h:15
The Script class represents a compiled Scratch script.
Definition script.h:23
The Target class is the Stage or a Sprite.
Definition target.h:28
IEngine * engine() const
Definition thread.cpp:35
void reset()
Definition thread.cpp:76
Script * script() const
Definition thread.cpp:41
Thread(const Thread &)=delete
bool isFinished() const
Definition thread.cpp:82
Thread(Target *target, IEngine *engine, Script *script)
Definition thread.cpp:13
bool runPredicate()
Definition thread.cpp:60
std::shared_ptr< Promise > promise() const
Definition thread.cpp:88
ValueData runReporter()
Definition thread.cpp:53
void kill()
Definition thread.cpp:70
void run()
Definition thread.cpp:47
Target * target() const
Definition thread.cpp:29
void setPromise(std::shared_ptr< Promise > promise)
Definition thread.cpp:94
#define LIBSCRATCHCPP_EXPORT
Definition global.h:17
The main namespace of the library.
Definition asset.h:10
The ValueData struct holds the data of Value. It's used in compiled Scratch code for better performan...
Definition valuedata.h:26