public static Bullet GetBullet(string name) { Bullet bulletToCopy = DefaultBullet; if (Bullets.ContainsKey(name)) { bulletToCopy = Bullets[name]; } return(bulletToCopy.Duplicate()); }
public static void Add(string name, Bullet bullet) { if (!Bullets.ContainsKey(name)) { Bullets.Add(name, bullet); if (DefaultBullet == null) { DefaultBullet = bullet; } } }