Files
rive-flutter/lib/src/generated/animation/animation_state_base.dart
mjtalbot fe30e35068 Run generate
just trying to flush through some of the bits coming out of running generate core runtime & generate core runtime without making a mess in other pr's .
this is split into four commits which might be helpful when looking at the changes here.

Diffs=
ad72cfce5 Run generate (#5490)
7ee5f7d5a Increases the margin for the approx call to some of the wangs formula… (#5506)
2f224da7f Runtime ellipsis (#5482)

Co-authored-by: Maxwell Talbot <talbot.maxwell@gmail.com>
2023-06-29 08:29:17 +00:00

52 lines
1.6 KiB
Dart

/// Core automatically generated
/// lib/src/generated/animation/animation_state_base.dart.
/// Do not modify manually.
import 'package:rive/src/generated/animation/layer_state_base.dart';
import 'package:rive/src/generated/animation/state_machine_layer_component_base.dart';
import 'package:rive/src/rive_core/animation/advanceable_state.dart';
abstract class AnimationStateBase extends AdvanceableState {
static const int typeKey = 61;
@override
int get coreType => AnimationStateBase.typeKey;
@override
Set<int> get coreTypes => {
AnimationStateBase.typeKey,
AdvanceableStateBase.typeKey,
LayerStateBase.typeKey,
StateMachineLayerComponentBase.typeKey
};
/// --------------------------------------------------------------------------
/// AnimationId field with key 149.
static const int animationIdInitialValue = -1;
int _animationId = animationIdInitialValue;
static const int animationIdPropertyKey = 149;
/// Id of the animation this layer state refers to.
int get animationId => _animationId;
/// Change the [_animationId] field value.
/// [animationIdChanged] will be invoked only if the field's value has
/// changed.
set animationId(int value) {
if (_animationId == value) {
return;
}
int from = _animationId;
_animationId = value;
if (hasValidated) {
animationIdChanged(from, value);
}
}
void animationIdChanged(int from, int to);
@override
void copy(covariant AnimationStateBase source) {
super.copy(source);
_animationId = source._animationId;
}
}