mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[csharp] New labeled goto convention. For https://github.com/EsotericSoftware/spine-runtimes/issues/1002
This commit is contained in:
parent
947f055ab3
commit
61d9f729d6
@ -712,14 +712,14 @@ namespace Spine {
|
||||
if (entry.mixDuration > 0) {
|
||||
timelineDataItems[i] = AnimationState.DipMix;
|
||||
timelineDipMixItems[i] = entry;
|
||||
goto outer; // continue outer;
|
||||
goto continue_outer; // continue outer;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
timelineDataItems[i] = AnimationState.Dip;
|
||||
}
|
||||
outer: {}
|
||||
continue_outer: {}
|
||||
}
|
||||
return lastEntry;
|
||||
}
|
||||
|
||||
@ -176,7 +176,7 @@ namespace Spine {
|
||||
y = (float)Math.Sqrt(dd - r * r) * bendDir;
|
||||
a1 = ta - (float)Math.Atan2(y, r);
|
||||
a2 = (float)Math.Atan2(y / psy, (r - l1) / psx);
|
||||
goto outer; // break outer;
|
||||
goto break_outer; // break outer;
|
||||
}
|
||||
}
|
||||
float minAngle = MathUtils.PI, minX = l1 - a, minDist = minX * minX, minY = 0;
|
||||
@ -208,7 +208,7 @@ namespace Spine {
|
||||
a2 = maxAngle * bendDir;
|
||||
}
|
||||
}
|
||||
outer:
|
||||
break_outer:
|
||||
float os = (float)Math.Atan2(cy, cx) * s2;
|
||||
float rotation = parent.arotation;
|
||||
a1 = (a1 - os) * MathUtils.RadDeg + os1 - rotation;
|
||||
|
||||
@ -135,24 +135,24 @@ namespace Spine {
|
||||
IkConstraint constraint = ikConstraints.Items[ii];
|
||||
if (constraint.data.order == i) {
|
||||
SortIkConstraint(constraint);
|
||||
goto outer; //continue outer;
|
||||
goto continue_outer; //continue outer;
|
||||
}
|
||||
}
|
||||
for (int ii = 0; ii < transformCount; ii++) {
|
||||
TransformConstraint constraint = transformConstraints.Items[ii];
|
||||
if (constraint.data.order == i) {
|
||||
SortTransformConstraint(constraint);
|
||||
goto outer; //continue outer;
|
||||
goto continue_outer; //continue outer;
|
||||
}
|
||||
}
|
||||
for (int ii = 0; ii < pathCount; ii++) {
|
||||
PathConstraint constraint = pathConstraints.Items[ii];
|
||||
if (constraint.data.order == i) {
|
||||
SortPathConstraint(constraint);
|
||||
goto outer; //continue outer;
|
||||
goto continue_outer; //continue outer;
|
||||
}
|
||||
}
|
||||
outer: {}
|
||||
continue_outer: {}
|
||||
}
|
||||
|
||||
for (int i = 0, n = bones.Count; i < n; i++)
|
||||
|
||||
@ -78,13 +78,13 @@ namespace Spine {
|
||||
float vx = vertices[v], vy = vertices[v + 1];
|
||||
if (PositiveArea(p3x, p3y, p1x, p1y, vx, vy)) {
|
||||
if (PositiveArea(p1x, p1y, p2x, p2y, vx, vy)) {
|
||||
if (PositiveArea(p2x, p2y, p3x, p3y, vx, vy)) goto outer; // break outer;
|
||||
if (PositiveArea(p2x, p2y, p3x, p3y, vx, vy)) goto break_outer; // break outer;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
outer:
|
||||
break_outer:
|
||||
|
||||
if (next == 0) {
|
||||
do {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user