Ejemplo n.º 1
0
 private void CompassEditor_CheckInverseExit(object sender, CompassEditorControl.CreateExitEventArgs e)
 {
     if (e.To != null)
     {
         bool exitsInverseExists = ExitsInverseExists(e.To, e.Direction);
         CompassEditor.CorrespondingExitExists = exitsInverseExists;
         CompassEditor.AllowCreateInverseExit = !exitsInverseExists;
     }
 }
Ejemplo n.º 2
0
 private void CompassEditor_CreateExit(object sender, CompassEditorControl.CreateExitEventArgs e)
 {
     string newExit;
     if (CompassEditor.AllowCreateInverseExit) DefaultCreateInverseSetting = e.CreateInverse;
     if (e.CreateInverse)
     {
         newExit = m_controller.CreateNewExit(m_data.Name, e.To, e.Direction, GetInverseDirection(e.Direction), GetDirectionType(e.Direction), GetDirectionType(GetInverseDirection(e.Direction)));
     }
     else
     {
         newExit = m_controller.CreateNewExit(m_data.Name, e.To, e.Direction, GetDirectionType(e.Direction), e.LookOnly);
     }
 }