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
파일: GS.cs 프로젝트: bartwe/Gearset
        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
파일: GS.cs 프로젝트: bartwe/Gearset
        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;
        }