36 proj.frameCounter = 0;
79 Modify(ref
Selected, startFrame, frameCount, delayPerFrame, bounceLoop);
91 if (frameCount.HasValue && frameCount.Value < 1)
95 target.StartFrame = (startFrame.HasValue ? startFrame.Value : target.StartFrame);
96 target.FrameCount = (frameCount.HasValue ? frameCount.Value : target.FrameCount);
97 target.DelayPerFrame = (delayPerFrame.HasValue ? delayPerFrame.Value : target.DelayPerFrame);
98 target.BounceLoop = (bounceLoop.HasValue ? bounceLoop.Value : target.BounceLoop);
SettingsForCharacterPreview WithOffset(float x, float y)
static void Modify(ref SelectionBasedSettings target, int? startFrame, int? frameCount, int? delayPerFrame, bool? bounceLoop)
SettingsForCharacterPreview WithCode(CustomAnimationCode customAnimation)
CustomAnimationCode CustomAnimation
SettingsForCharacterPreview WithSpriteDirection(int spriteDirection)
SettingsForCharacterPreview WithOffset(Vector2 offset)
SelectionBasedSettings NotSelected
void ApplyTo(Projectile proj, bool walking)
delegate void CustomAnimationCode(Projectile proj, bool walking)
SettingsForCharacterPreview WhenSelected(int? startFrame=null, int? frameCount=null, int? delayPerFrame=null, bool? bounceLoop=null)
SettingsForCharacterPreview WhenNotSelected(int? startFrame=null, int? frameCount=null, int? delayPerFrame=null, bool? bounceLoop=null)
SelectionBasedSettings Selected
void ApplyTo(Projectile proj)