Пример #1
0
 private void MMessageBus_ZoneSelectHandler(object sender, ZoneEvent e)
 {
     if (e.Zone == null)
     {
         Widget.Enabled = false;
     }
     else
     {
         Target         = MassiveTools.Vector3dFromVector3_Server(e.Zone.Position);
         Widget.Enabled = true;
     }
 }
Пример #2
0
        public static Vector3d Find(string s)
        {
            Vector3d pos = Vector3d.Zero;

            lock (ZoneLocker)
            {
                MServerZone zone = Zones.Find(x => x.Name.IndexOf(s, StringComparison.CurrentCultureIgnoreCase) > -1);
                if (zone != null)
                {
                    pos = MassiveTools.Vector3dFromVector3_Server(zone.Position);
                }
            }

            return(pos);
        }
Пример #3
0
 private void MMessageBus_ZoneSelectHandler(object sender, ZoneEvent e)
 {
     NavigationTarget = MassiveTools.Vector3dFromVector3_Server(e.Zone.Position);
 }