public CSimIO(IntPtr HotKeyHandle, MotorSignalSettings sets) { settings = sets; gan_loc = settings.SignConfig.GanPosition; xian_loc = settings.SignConfig.XianPosition; che_loc = settings.SignConfig.ChePosition; _hkapp = new CHotkeyApp(HotKeyHandle, this); _hkapp.StartHotkey(); }
public CSimIO(IntPtr HotKeyHandle) { settings = (SignalSettings)Util.ModuleConfig.GetSettings(settings.GetType(), "signal.config"); b_gan_loc = settings.BigCar.Gan; b_xian_loc = settings.BigCar.Xian; b_che_loc = settings.BigCar.Che; s_gan_loc = settings.SmallCar.Gan; s_xian_loc = settings.SmallCar.Xian; s_che_loc = settings.SmallCar.Che; _carType = settings.CarType; _hkapp = new CHotkeyApp(HotKeyHandle, this); _hkapp.StartHotkey(); }