Provides a simple way to add Gearset to your game. Simply add this component to your Game's Component collection and you're set. (Additionally you have to add the [STAThread] attribute to your Main(string[] args) method (usually in program.cs)
Наследование: GearsetComponentBase
Пример #1
0
        internal static void Initialize(Game game)
        {
            // Create the Gearset Component, this will be in charge of
            // Initializing Gearset and Updating/Drawing it every frame.
            GearsetComponent = new Gearset.GearsetComponent(game);
            game.Components.Add(GearsetComponent);

            // This component updates this class allowing it to process
            // calls from other threads which are queued.
            game.Components.Add(new GearsetWrapperUpdater(game));

            Console      = GearsetComponent.Console;
            _ownerThread = Thread.CurrentThread;
        }
Пример #2
0
        public static void Initialize(Game game)
        {
            // Create the Gearset Component, this will be in charge of
            // Initializing Gearset and Updating/Drawing it every frame.
            GearsetComponent = new GearsetComponent(game);
            game.Components.Add(GearsetComponent);

            // This component updates this class allowing it to process
            // calls from other threads which are queued.
            game.Components.Add(new GearsetWrapperUpdater(game));

            Console = GearsetComponent.Console;
            ownerThread = Thread.CurrentThread;
        }