Skip to content

Commit

Permalink
Removed the optional parameters to make it C# 3.0 compatible hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
Domenic Datti committed Mar 5, 2014
1 parent 6b605e6 commit 5593c1a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 10 additions & 2 deletions flatredball-spriter/FlatRedBall-Spriter/SpriterObjectCollection.cs
Expand Up @@ -99,8 +99,12 @@ private float AnimationSpeed
}
}

public SpriterObject FindByName(string name = "")
public SpriterObject FindByName(string name)
{
if (string.IsNullOrEmpty(name))
{
return null;
}
if (SpriterEntities == null) return null;

if (SpriterEntities.ContainsKey(name))
Expand Down Expand Up @@ -147,7 +151,11 @@ public SpriterObjectCollection Clone()
return soc;
}

public void StartAnimation(string name = null)
public void StartAnimation()
{
StartAnimation(null);
}
public void StartAnimation(string name)
{
if (SpriterEntities == null) return;

Expand Down
@@ -1,4 +1,2 @@
Content\Entities\testentity\logoanimation.scml
Content\Entities\testentity\spriterlogo.png
Content\Screens\test\spriterlogo.png
redball.BMP

0 comments on commit 5593c1a

Please sign in to comment.