mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-24 21:35:21 +02:00
Get the new animation framework properly working
Store start and end frames as v2f Also move bone animations to their own function instead of object properties
This commit is contained in:
committed by
Perttu Ahola
parent
ba4d93027f
commit
118285e6ba
@@ -61,6 +61,8 @@ public:
|
||||
void setHP(s16 hp);
|
||||
s16 getHP() const;
|
||||
void setArmorGroups(const ItemGroupList &armor_groups);
|
||||
void setAnimations(v2f frames, float frame_speed, float frame_blend);
|
||||
void setBonePosRot(std::string bone, v3f position, v3f rotation);
|
||||
ObjectProperties* accessObjectProperties();
|
||||
void notifyObjectPropertiesModified();
|
||||
/* LuaEntitySAO-specific */
|
||||
@@ -73,7 +75,6 @@ public:
|
||||
void setTextureMod(const std::string &mod);
|
||||
void setSprite(v2s16 p, int num_frames, float framelength,
|
||||
bool select_horiz_by_yawpitch);
|
||||
void setAnimations(int frame_start, int frame_end, float frame_speed, float frame_blend);
|
||||
std::string getName();
|
||||
private:
|
||||
std::string getPropertyPacket();
|
||||
@@ -143,6 +144,8 @@ public:
|
||||
void setHP(s16 hp);
|
||||
|
||||
void setArmorGroups(const ItemGroupList &armor_groups);
|
||||
void setAnimations(v2f frames, float frame_speed, float frame_blend);
|
||||
void setBonePosRot(std::string bone, v3f position, v3f rotation);
|
||||
ObjectProperties* accessObjectProperties();
|
||||
void notifyObjectPropertiesModified();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user