using System; using System.Collections.Generic; using System.Linq; using System.Text; using VRageMath; namespace Sandbox.ModAPI.Ingame { /// /// Provides basic information about a waypoint. /// public struct MyWaypointInfo { /// /// The waypoint name /// public readonly string Name; /// /// The coordinates of this waypoint /// public readonly Vector3D Coords; public MyWaypointInfo(string name, Vector3D coords) { Name = name; Coords = coords; } } public interface IMyRemoteControl : IMyShipController { // Gets the nearest player's position. Will only work if the remote control belongs to an NPC bool GetNearestPlayer(out Vector3D playerPosition); /// /// Removes all existing waypoints. /// void ClearWaypoints(); /// /// Gets basic information about the currently configured waypoints. /// /// void GetWaypointInfo(List waypoints); /// /// Adds a new waypoint. /// /// /// void AddWaypoint(Vector3D coords, string name); /// /// Enables or disables the autopilot. /// /// void SetAutoPilotEnabled(bool enabled); /// /// Determines whether the autopilot is currently enabled. /// bool IsAutoPilotEnabled { get; } } }