/// <summary> /// Called from BulletMLLib when a new bullet needs to be created in the tree /// </summary> public BulletMLBullet GetNewBullet() { IsBulletRoot = true; BulletMover bulletMover = myManager.CreateBulletMover(); return(bulletMover.MLBullet); }
/// <summary> /// Creating a new Emitter /// </summary> public BulletMover CreateBulletMover(Vector position, BulletMLLib.BulletMLTree tree) { BulletMover newBulletMover = CreateBulletMover(); newBulletMover.Position = position; newBulletMover.SetBullet(tree); return(newBulletMover); }
public BulletMover CreateBulletMover() { Icon iconBullet = ControlFactory.CreateIcon(contentManager, "Square"); BulletMover newBulletMover = new BulletMover(); emitters.Add(newBulletMover); newBulletMover.Init(this, iconBullet); return(newBulletMover); }