public PhotonGenerator(PhotosystemWing currentSystem, int frequency)
            : base(currentSystem, frequency, currentSystem.Handler)
        {
            this.Photons = new List<Photon>();
            this.ThisSystem = currentSystem;

            this.BlueTexture = this.CurrentSystem.Handler.Content.Load<Texture2D>("Textures/Photon");
            this.BlueWarning = this.CurrentSystem.Handler.Content.Load<Texture2D>("Textures/PhotonWarning");
            this.BadTexture = this.CurrentSystem.Handler.Content.Load<Texture2D>("Textures/PhotonBad");
            this.BadWarning = this.CurrentSystem.Handler.Content.Load<Texture2D>("Textures/PhotonBadWarning");
        }
Пример #2
0
        public SystemHandler(SpriteBatch batch, ContentManager content)
        {
            this.Batch = batch;
            this.Content = content;
            this.RNG = new Random();
            this.CurrentStage = Stage.Photon;

            this.TextFont = Content.Load<SpriteFont>("Font/TextFont");
            this.TextList = null;
            this.TextIndex = 0;
            this.TextLocation = new Vector2(20, 550);
            this.ButtonLag = 0;

            this.One = new PhotosystemWing(this);
            this.Two = new PhotosystemETC(this);
        }