diff options
author | MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> | 2012-10-26 11:46:46 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-11-25 18:14:15 +0200 |
commit | ba4d93027f7b1590f303eff2138cae413faf5c34 (patch) | |
tree | 131a875a718d15c50d5d052540f7c433bd2bdb1f /src/content_sao.cpp | |
parent | fb0c43186422ad985e70f73bc70eeb07cc194909 (diff) | |
download | minetest-ba4d93027f7b1590f303eff2138cae413faf5c34.tar.gz minetest-ba4d93027f7b1590f303eff2138cae413faf5c34.tar.bz2 minetest-ba4d93027f7b1590f303eff2138cae413faf5c34.zip |
Joint positioning and rotation code, and fix a problem related to their lua API
Attempt to move the animation system to a more correct implementation, rather than using object properties. Incomplete and breaks functionality
Diffstat (limited to 'src/content_sao.cpp')
-rw-r--r-- | src/content_sao.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/content_sao.cpp b/src/content_sao.cpp index 6c2abf8f6..9aeb88e71 100644 --- a/src/content_sao.cpp +++ b/src/content_sao.cpp @@ -706,6 +706,14 @@ void LuaEntitySAO::setSprite(v2s16 p, int num_frames, float framelength, m_messages_out.push_back(aom); } +void LuaEntitySAO::setAnimations(int frame_start, int frame_end, float frame_speed, float frame_blend) +{ + std::string str = gob_cmd_set_animations(frame_start, frame_end, frame_speed, frame_blend); + // create message and add to list + ActiveObjectMessage aom(getId(), true, str); + m_messages_out.push_back(aom); +} + std::string LuaEntitySAO::getName() { return m_init_name; |