public cAnimatedSprite(cAnimatedSprite blueprint) { _xmlURL = blueprint.XMLURL; _name = blueprint.Name; _animations = blueprint.Animations; _animTimer = 0; }
public cAnimatedSprite addSprite(string name, string URL) { // Check to see if it already exists first foreach (string key in _sprites.Keys) { if (key == name) { return(new cAnimatedSprite(_sprites[name])); } } // If not lets load the bugger cAnimatedSprite sprite = new cAnimatedSprite(URL); sprite.Name = name; _sprites.Add(name, sprite); return(new cAnimatedSprite(sprite)); }