Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Modify()

static void Terraria.DataStructures.SettingsForCharacterPreview.Modify ( ref SelectionBasedSettings target,
int? startFrame,
int? frameCount,
int? delayPerFrame,
bool? bounceLoop )
inlinestaticprivate

Definition at line 89 of file SettingsForCharacterPreview.cs.

90 {
91 if (frameCount.HasValue && frameCount.Value < 1)
92 {
93 frameCount = 1;
94 }
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);
99 }

Referenced by Terraria.DataStructures.SettingsForCharacterPreview.WhenNotSelected(), and Terraria.DataStructures.SettingsForCharacterPreview.WhenSelected().