mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Renamed clearAnimation to clearTracks.
This commit is contained in:
parent
10fa956f39
commit
4852fdca14
@ -77,7 +77,7 @@ void AnimationState_dispose (AnimationState* self);
|
||||
void AnimationState_update (AnimationState* self, float delta);
|
||||
void AnimationState_apply (AnimationState* self, struct Skeleton* skeleton);
|
||||
|
||||
void AnimationState_clear (AnimationState* self);
|
||||
void AnimationState_clearTracks (AnimationState* self);
|
||||
void AnimationState_clearTrack (AnimationState* self, int trackIndex);
|
||||
|
||||
/** Set the current animation. Any queued animations are cleared. */
|
||||
|
||||
@ -157,7 +157,7 @@ void AnimationState_apply (AnimationState* self, Skeleton* skeleton) {
|
||||
}
|
||||
}
|
||||
|
||||
void AnimationState_clear (AnimationState* self) {
|
||||
void AnimationState_clearTracks (AnimationState* self) {
|
||||
int i;
|
||||
for (i = 0; i < self->trackCount; i++)
|
||||
AnimationState_clearTrack(self, i);
|
||||
|
||||
@ -70,8 +70,8 @@
|
||||
- (TrackEntry*) setAnimationForTrack:(int)trackIndex name:(NSString*)name loop:(bool)loop;
|
||||
- (TrackEntry*) addAnimationForTrack:(int)trackIndex name:(NSString*)name loop:(bool)loop afterDelay:(int)delay;
|
||||
- (TrackEntry*) getCurrentForTrack:(int)trackIndex;
|
||||
- (void) clearAnimation;
|
||||
- (void) clearAnimationForTrack:(int)trackIndex;
|
||||
- (void) clearTracks;
|
||||
- (void) clearTrack:(int)trackIndex;
|
||||
|
||||
- (void) onAnimationStateEvent:(int)trackIndex type:(EventType)type event:(Event*)event loopCount:(int)loopCount;
|
||||
|
||||
|
||||
@ -143,11 +143,11 @@ static void callback (AnimationState* state, int trackIndex, EventType type, Eve
|
||||
return AnimationState_getCurrent(_state, trackIndex);
|
||||
}
|
||||
|
||||
- (void) clearAnimation {
|
||||
AnimationState_clear(_state);
|
||||
- (void) clearTracks {
|
||||
AnimationState_clearTracks(_state);
|
||||
}
|
||||
|
||||
- (void) clearAnimationForTrack:(int)trackIndex {
|
||||
- (void) clearTrack:(int)trackIndex {
|
||||
AnimationState_clearTrack(_state, trackIndex);
|
||||
}
|
||||
|
||||
|
||||
@ -135,11 +135,11 @@ TrackEntry* CCSkeletonAnimation::getCurrent (int trackIndex) {
|
||||
return AnimationState_getCurrent(state, trackIndex);
|
||||
}
|
||||
|
||||
void CCSkeletonAnimation::clearAnimation () {
|
||||
AnimationState_clear(state);
|
||||
void CCSkeletonAnimation::clearTracks () {
|
||||
AnimationState_clearTracks(state);
|
||||
}
|
||||
|
||||
void CCSkeletonAnimation::clearAnimation (int trackIndex) {
|
||||
void CCSkeletonAnimation::clearTrack (int trackIndex) {
|
||||
AnimationState_clearTrack(state, trackIndex);
|
||||
}
|
||||
|
||||
|
||||
@ -69,8 +69,8 @@ public:
|
||||
TrackEntry* setAnimation (int trackIndex, const char* name, bool loop);
|
||||
TrackEntry* addAnimation (int trackIndex, const char* name, bool loop, float delay = 0);
|
||||
TrackEntry* getCurrent (int trackIndex = 0);
|
||||
void clearAnimation ();
|
||||
void clearAnimation (int trackIndex = 0);
|
||||
void clearTracks ();
|
||||
void clearTrack (int trackIndex = 0);
|
||||
|
||||
void onAnimationStateEvent (int trackIndex, EventType type, Event* event, int loopCount);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user