public ScansMode(Program program, WicoControl wicoControl, WicoBlockMaster wicoBlockMaster, WicoIGC igc, Cameras cameras, Asteroids asteroids ) : base(program, wicoControl) { _program = program; _wicoControl = wicoControl; _wicoBlockMaster = wicoBlockMaster; _wicoIGC = igc; _cameras = cameras; _asteroids = asteroids; _program.moduleName += " Scans"; _program.moduleList += "\nScans V4.1"; // _program._CustomDataIni.Get(sNavSection, "NAVEmulateOld").ToBoolean(NAVEmulateOld); // _program._CustomDataIni.Set(sNavSection, "NAVEmulateOld", NAVEmulateOld); _program.AddUpdateHandler(UpdateHandler); _program.AddTriggerHandler(ProcessTrigger); _program.AddLoadHandler(LoadHandler); _program.AddSaveHandler(SaveHandler); _wicoControl.AddModeInitHandler(ModeInitHandler); _wicoControl.AddControlChangeHandler(ModeChangeHandler); _wicoBlockMaster.AddLocalBlockChangedHandler(LocalGridChangedHandler); _wicoIGC.AddPublicHandler(NavCommon.WICOB_NAVADDTARGET, BroadcastHandler); _wicoIGC.AddPublicHandler(NavCommon.WICOB_NAVRESET, BroadcastHandler); _wicoIGC.AddPublicHandler(NavCommon.WICOB_NAVSTART, BroadcastHandler); }
public BaseConnectors(Program program, WicoBlockMaster wbm, WicoIGC wicoIGC, WicoElapsedTime wicoElapsedTime) { _program = program; _wicoBlockMaster = wbm; _wicoIGC = wicoIGC; _wicoElapsedTime = wicoElapsedTime; _program.moduleName += " Base Connectors"; _program.moduleList += "\nBase Connectors V4.0"; _program.AddUpdateHandler(UpdateHandler); _program.AddTriggerHandler(ProcessTrigger); _program.AddLoadHandler(LoadHandler); _program.AddSaveHandler(SaveHandler); _program.AddPostInitHandler(PostInitHandler); // _program.AddResetMotionHandler(ResetMotionHandler); _wicoBlockMaster.AddLocalBlockChangedHandler(LocalGridChangedHandler); _wicoBlockMaster.AddLocalBlockHandler(BlockParseHandler); // _program._CustomDataIni.Get(sBaseSection, "BaseTransmitWait").ToDouble(dBaseTransmitWait); // _program._CustomDataIni.Set(sBaseSection, "BaseTransmitWait", dBaseTransmitWait); _wicoIGC.AddPublicHandler("BASE?", BroadcastHandler); _wicoIGC.AddPublicHandler("CON?", BroadcastHandler); _wicoIGC.AddPublicHandler("COND?", BroadcastHandler); // wicoControl.AddModeInitHandler(ModeInitHandler); // wicoControl.AddControlChangeHandler(ModeChangeHandler); _wicoElapsedTime.AddTimer(_BaseTransmit, 55, BaseTransmitTimerHandler); _wicoElapsedTime.StartTimer(_BaseTransmit); }
void InitMessageHandlers() { // creates a BROADCAST channel with the specified tag and calls the handler when messages are processed _wicoIGC.AddPublicHandler(_broadCastTag, TestBroadcastHandler); // calls the handler when UNICAST messages are processed _wicoIGC.AddUnicastHandler(TestUnicastHandler); }
public WicoBases(Program program, WicoIGC iGC) { _thisProgram = program; _wicoIGC = iGC; _thisProgram.AddLoadHandler(LoadHandler); _thisProgram.AddSaveHandler(SaveHandler); _wicoIGC.AddPublicHandler(sIGCBaseAnnounceTag, BaseBroadcastHandler); }
public Asteroids(Program program, WicoControl wicoControl, WicoIGC wicoIGC, Displays displays) { _program = program; _wicoControl = wicoControl; _wicoIGC = wicoIGC; _displays = displays; _program.AddLoadHandler(LoadHandler); _program.AddSaveHandler(SaveHandler); _wicoIGC.AddPublicHandler(sAsteroidTag, BroadcastHandler); _displays.AddSurfaceHandler("ASTEROIDS", SurfaceHandler); }
public WicoBases(Program program, WicoIGC iGC, Displays displays) { _program = program; _wicoIGC = iGC; _displays = displays; _program.AddLoadHandler(LoadHandler); _program.AddSaveHandler(SaveHandler); _displays.AddSurfaceHandler("BASELOCS", SurfaceHandler); _wicoIGC.AddPublicHandler(sIGCBaseAnnounceTag, BaseBroadcastHandler); }
public Ores(Program program, WicoBlockMaster wbm, WicoControl wicoControl, WicoIGC wicoIGC, Asteroids asteroids, Displays displays) : base(program, wbm, null) { _program = program; _wicoBlockMaster = wbm; _wicoControl = wicoControl; _wicoIGC = wicoIGC; _asteroids = asteroids; _displays = displays; _program.AddLoadHandler(LoadHandler); _program.AddSaveHandler(SaveHandler); _wicoIGC.AddPublicHandler(sOreTag, BroadcastHandler); if (_displays != null) { _displays.AddSurfaceHandler("ORELOCS", SurfaceHandler); } }
void InitMessageHandlers() { wicoIGC.AddPublicHandler(sBroadCastTag, TestBroadcastHandler); }