COMPOSER: Implement V1 random events.
This commit is contained in:
parent
81785c6090
commit
d6bfbdd60e
4 changed files with 39 additions and 1 deletions
|
@ -101,6 +101,11 @@ struct KeyboardHandler {
|
|||
uint16 scriptId;
|
||||
};
|
||||
|
||||
struct RandomEvent {
|
||||
uint16 weight;
|
||||
uint16 scriptId;
|
||||
};
|
||||
|
||||
struct Library {
|
||||
uint _id;
|
||||
Archive *_archive;
|
||||
|
@ -182,6 +187,8 @@ private:
|
|||
Common::List<Animation *> _anims;
|
||||
Common::List<Pipe *> _pipes;
|
||||
|
||||
Common::HashMap<uint16, Common::Array<RandomEvent> > _randomEvents;
|
||||
|
||||
void onMouseDown(const Common::Point &pos);
|
||||
void onMouseMove(const Common::Point &pos);
|
||||
void onKeyDown(uint16 keyCode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue