Skip to content

Commit

Permalink
document animmodel::part::animated()
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Dec 6, 2024
1 parent f314a17 commit 1c279bc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/engine/model/animmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,16 @@ class animmodel : public model
void render(int anim, int basetime, int basetime2, float pitch, const vec &axis, const vec &forward, dynent *d);
void render(int anim, int basetime, int basetime2, float pitch, const vec &axis, const vec &forward, dynent *d, AnimState *as);
void setanim(int animpart, int num, int frame, int range, float speed, int priority = 0);

/**
* @brief Returns true of all animparts for this part are set
*
* Checks that all animspec vectors in part::anims exist and have
* been instantiated. No values must be in the vectors for this to return true;
* they only need to exist.
*
* @return true if all animparts are set, false otherwise
*/
bool animated() const;
virtual void loaded();

Expand Down

0 comments on commit 1c279bc

Please sign in to comment.