#pragma warning restore IDE1006 // Naming Styles internal Globals(AugmentrexContext context) { ctx = context; host = context.Host; game = context.Game; mem = context.Memory; cfg = context.Configuration; keys = context.HotKeys; }
internal AugmentrexContext(bool shallow, Process host, Process game, string channelName, HotKeyRegistrar hotKeys) { Host = host; Game = game; var mod = game.MainModule; Memory = new MemoryWindow(mod.BaseAddress, (uint)mod.ModuleMemorySize); Ipc = new IpcBridge(channelName, shallow); HotKeys = hotKeys ?? new HotKeyRegistrar(); if (!shallow) { Interpreter = new CommandInterpreter(this); _console = Configuration.GameConsoleEnabled ? new ConsoleWindow(this) : null; _debug = Configuration.DebugListenerEnabled ? new DebugListener(this) : null; } _shallow = shallow; }