mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 19:57:06 +01:00
feat(events): the animation event starts and stops the clips of EU07M models
A clip of stage 8 played on its own (autoplay) or from the code; a scenery event can start it now. - New form of the animation event: "animation <delay> <model> clip <name> <pace>". A pace above 0 starts the clip from its beginning at that pace (a clip playing starts over), 0 stops the clips of the model, its nodes left where the clips put them. A clip the model hasn't gets "Bad event: ... can't find clip ..." in the log. The event is written back in the same form. The forms before it (rotate, translate, digital, .vmd) read and run as they did. The current release doesn't read the new form. - The editor self-test gets "eventrun <name>", which finds the targets of the event and runs it at once, since the editor runs no events. Checked in the game (Vulkan): after "clip bend 0" the tube stands still (no pixel differs between three shots), after "clip bend 2" it moves, "clip nosuchclip 1" logs the error (time let run in the editor for the test only). No unit test: the unit tests don't link world/Event.cpp. Unit tests 1200/1200. Not built with GCC here.
This commit is contained in:
@@ -99,6 +99,7 @@ editor_mode::selftest_result editor_mode::selftest_dispatch(std::string const &c
|
||||
// key <S|W|CTRL|RMB> <press|release> [ctrl] a key or right button event, as the window gives it
|
||||
// lineside <vehicle|hekto|fouling|parallel> the tab of the objects along the track in the track window
|
||||
// event <name> queues the event
|
||||
// eventrun <name> runs the event at once, its targets found first, as the simulation does (the editor runs none)
|
||||
// clip <node> <name> [speed] starts an animation clip of the model of the instance (EU07M), by the simulation time
|
||||
// animate <node> <submodel> <x> <y> <z> turns a submodel of a model instance to the angles, as an animation event does (the
|
||||
// editor doesn't run the events); the animation goes by the simulation time
|
||||
|
||||
Reference in New Issue
Block a user