Animation2D.pkg 369 B

123456789101112
  1. $#include "Animation2D.h"
  2. class Animation2D : public Resource
  3. {
  4. float GetTotalTime() const;
  5. unsigned GetNumFrames() const;
  6. Sprite2D* GetFrameSprite(unsigned index) const;
  7. Sprite2D* GetFrameSpriteByTime(float time) const;
  8. tolua_readonly tolua_property__get_set float totalTime;
  9. tolua_readonly tolua_property__get_set unsigned numFrames;
  10. };