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; } }
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); }
private void MMessageBus_ZoneSelectHandler(object sender, ZoneEvent e) { NavigationTarget = MassiveTools.Vector3dFromVector3_Server(e.Zone.Position); }