예제 #1
0
        public BindingsManager(ModulePacket packet)
        {
            _configurationManager = packet.GetSingleton <IConfigurationManager>();

            if (_configurationManager.Contains <InputBindingsConfiguration>())
            {
                _bindingsDictionary = _configurationManager.Get <InputBindingsConfiguration>().Bindings;
            }
            else
            {
                _bindingsDictionary = new Dictionary <string, List <Binding> >
                {
                    { "default", Default.ToList() }
                };
            }
        }
예제 #2
0
        public void Do(string[] args)
        {
            var window = _packet.GetSingleton <IGuiInstanceManager>().MainWindow;

            window.VSync = !window.VSync;

            // this is inverted because the event happens after the next frame.
            if (!window.VSync)
            {
                ConsoleHelper.WriteEmbeddedColorLine("VSync is [green]ON[/green]");
            }
            else
            {
                ConsoleHelper.WriteEmbeddedColorLine("VSync is [red]OFF[/red]");
            }
        }
예제 #3
0
 public FluincyTask(ModulePacket packet)
 {
     _configurationManager = packet.GetSingleton <IConfigurationManager>();
 }