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

◆ SimpleLoop()

static SettingsForCharacterPreview Terraria.ID.ProjectileID.Sets.SimpleLoop ( int startFrame,
int frameCount,
int delayPerFrame = 4,
bool bounceLoop = false )
inlinestatic

Definition at line 321 of file ProjectileID.cs.

322 {
323 if (frameCount < 1)
324 {
325 frameCount = 1;
326 }
327 SettingsForCharacterPreview settingsForCharacterPreview = new SettingsForCharacterPreview();
328 settingsForCharacterPreview.Offset = Vector2.Zero;
329 settingsForCharacterPreview.SpriteDirection = 1;
330 settingsForCharacterPreview.WhenSelected(startFrame, frameCount, delayPerFrame, bounceLoop);
331 settingsForCharacterPreview.WhenNotSelected(startFrame, frameCount, delayPerFrame, bounceLoop);
332 return settingsForCharacterPreview;
333 }
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)

References Terraria.DataStructures.SettingsForCharacterPreview.WhenNotSelected(), Terraria.DataStructures.SettingsForCharacterPreview.WhenSelected(), and Microsoft.Xna.Framework.Vector2.Zero.