diff options
Diffstat (limited to 'src/genericobject.cpp')
-rw-r--r-- | src/genericobject.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/genericobject.cpp b/src/genericobject.cpp index 15977b0e0..d86c47eb9 100644 --- a/src/genericobject.cpp +++ b/src/genericobject.cpp @@ -147,6 +147,16 @@ std::string gob_cmd_update_animation(v2f frames, float frame_speed, float frame_ return os.str(); } +std::string gob_cmd_update_animation_speed(float frame_speed) +{ + std::ostringstream os(std::ios::binary); + // command + writeU8(os, GENERIC_CMD_SET_ANIMATION_SPEED); + // parameters + writeF1000(os, frame_speed); + return os.str(); +} + std::string gob_cmd_update_bone_position(const std::string &bone, v3f position, v3f rotation) { |