Example #1
0
        void InitializeModules()
        {
            repo = new Repository();

            if (modules.Count > 0)
            {
                modules.Clear();
            }

            drawing         = new Drawing();
            drawing.Enabled = false; // manual updating (so it only happens when XNA wants to draw)
            drawing.Subscribe(repo.Delegater);

            timing = new Timing();
            timing.Subscribe(repo.Delegater);

            cameras = new Cameras();
            cameras.Subscribe(repo.Delegater);

            modules.Add(drawing);
            modules.Add(timing);
            modules.Add(cameras);
        }
        void InitializeModules()
        {
            repo = new Repository();

            if (modules.Count > 0) {
                modules.Clear();
            }

            drawing = new Drawing();
            drawing.Enabled = false; // manual updating (so it only happens when XNA wants to draw)
            drawing.Subscribe(repo.Delegater);

            timing = new Timing();
            timing.Subscribe(repo.Delegater);

            cameras = new Cameras();
            cameras.Subscribe(repo.Delegater);

            modules.Add(drawing);
            modules.Add(timing);
            modules.Add(cameras);
        }