// FdAmb_TurnInteractionsOffAdvisedHandler public override void FdAmb_TurnInteractionsOffAdvisedHandler(object sender, HlaDeclarationManagementEventArgs data) { // Call the base class handler base.FdAmb_TurnInteractionsOffAdvisedHandler(sender, data); #region User Code throw new NotImplementedException("FdAmb_TurnInteractionsOffAdvisedHandler"); #endregion //User Code }
// Turn Interactions On public override void FdAmb_TurnInteractionsOnAdvisedHandler(object sender, HlaDeclarationManagementEventArgs data) { // Call the base class handler base.FdAmb_TurnInteractionsOnAdvisedHandler(sender, data); #region User Code Program.IsRadioOn = true; #endregion //User Code }
public override void FdAmb_StartRegistrationForObjectClassAdvisedHandler(object sender, HlaDeclarationManagementEventArgs data) { // Call the base class handler base.FdAmb_StartRegistrationForObjectClassAdvisedHandler(sender, data); #region User Code //throw new NotImplementedException("FdAmb_StartRegistrationForObjectClassAdvisedHandler"); #endregion //User Code }
// Cut and paste the callbacks that you want to modify from the Generated ChatFd file (ChatFd_Generated.cs) #region Event Handlers #region Federate Callback Event Handlers #region Declaration Management Callbacks // Start Registration public override void FdAmb_StartRegistrationForObjectClassAdvisedHandler(object sender, HlaDeclarationManagementEventArgs data) { // Call the base class handler base.FdAmb_StartRegistrationForObjectClassAdvisedHandler(sender, data); // User code // Check that this is for the USerOC if (data.ObjectClassHandle == Som.UserOC.Handle) { RegisterHlaObject(simManager.Users[0]); } }
// Stop Registration public override void FdAmb_StopRegistrationForObjectClassAdvisedHandler(object sender, HlaDeclarationManagementEventArgs data) { // Call the base class handler base.FdAmb_StopRegistrationForObjectClassAdvisedHandler(sender, data); #region User Code #endregion //User Code }
// Start Registration public override void FdAmb_StartRegistrationForObjectClassAdvisedHandler(object sender, HlaDeclarationManagementEventArgs data) { // Call the base class handler base.FdAmb_StartRegistrationForObjectClassAdvisedHandler(sender, data); #region User Code // Check that this is for the StationOC if (data.ObjectClassHandle == Som.StationOC.Handle) { RegisterHlaObject(Program.StationObjects[0]); } #endregion //User Code }
// Stop Registration public override void FdAmb_StopRegistrationForObjectClassAdvisedHandler(object sender, HlaDeclarationManagementEventArgs data) { // Call the base class handler base.FdAmb_StopRegistrationForObjectClassAdvisedHandler(sender, data); #region User Code manager.timer.Stop(); // move this to turn off attribute update callback #endregion //User Code }
// Start Registration public override void FdAmb_StartRegistrationForObjectClassAdvisedHandler(object sender, HlaDeclarationManagementEventArgs data) { // Call the base class handler base.FdAmb_StartRegistrationForObjectClassAdvisedHandler(sender, data); #region User Code // Check that this is for the ShipOC if (data.ObjectClassHandle == Som.ShipOC.Handle) { RegisterObject(manager.ShipObjects[0]); } manager.timer.Start(); // move this to turn on attribute update callback #endregion //User Code }