Remove some format rule (#10919)

* remove some rules
* format all codes with new format rule
This commit is contained in:
minggo
2022-05-04 13:09:24 +08:00
committed by GitHub
parent e9a4bdd4dc
commit 271cc5cf23
1148 changed files with 32411 additions and 34416 deletions
@@ -28,7 +28,7 @@
*****************************************************************************/
#ifdef SPINE_UE4
#include "SpinePluginPrivatePCH.h"
#include "SpinePluginPrivatePCH.h"
#endif
#include <spine/AnimationStateData.h>
@@ -41,45 +41,45 @@ AnimationStateData::AnimationStateData(SkeletonData *skeletonData) : _skeletonDa
}
void AnimationStateData::setMix(const String &fromName, const String &toName, float duration) {
Animation *from = _skeletonData->findAnimation(fromName);
Animation *to = _skeletonData->findAnimation(toName);
Animation *from = _skeletonData->findAnimation(fromName);
Animation *to = _skeletonData->findAnimation(toName);
setMix(from, to, duration);
setMix(from, to, duration);
}
void AnimationStateData::setMix(Animation *from, Animation *to, float duration) {
assert(from != NULL);
assert(to != NULL);
assert(from != NULL);
assert(to != NULL);
AnimationPair key(from, to);
_animationToMixTime.put(key, duration);
AnimationPair key(from, to);
_animationToMixTime.put(key, duration);
}
float AnimationStateData::getMix(Animation *from, Animation *to) {
assert(from != NULL);
assert(to != NULL);
assert(from != NULL);
assert(to != NULL);
AnimationPair key(from, to);
AnimationPair key(from, to);
if (_animationToMixTime.containsKey(key)) return _animationToMixTime[key];
return _defaultMix;
if (_animationToMixTime.containsKey(key)) return _animationToMixTime[key];
return _defaultMix;
}
SkeletonData *AnimationStateData::getSkeletonData() {
return _skeletonData;
return _skeletonData;
}
float AnimationStateData::getDefaultMix() {
return _defaultMix;
return _defaultMix;
}
void AnimationStateData::setDefaultMix(float inValue) {
_defaultMix = inValue;
_defaultMix = inValue;
}
AnimationStateData::AnimationPair::AnimationPair(Animation *a1, Animation *a2) : _a1(a1), _a2(a2) {
}
bool AnimationStateData::AnimationPair::operator==(const AnimationPair &other) const {
return _a1->_name == other._a1->_name && _a2->_name == other._a2->_name;
return _a1->_name == other._a1->_name && _a2->_name == other._a2->_name;
}