public FlightControl(MyCubeGrid thisGrid, IMyShipController thisController, GridSystems gridSystems) { _thisGrid = thisGrid; _thisController = thisController; _gridSystems = gridSystems; _thisDestination.Color = new Vector4(255, 0, 0, 1); _thisDestination.To = _waypoints[0]; _thisDestination.Thickness = 0.50f; AddDrawLine(); //List<IMyGps> gpsList = MyAPIGateway.Session.GPS.GetGpsList(MyAPIGateway.Session.LocalHumanPlayer.IdentityId); }
public ControllableGrid(IMyCubeGrid grid, IMyShipController controller) { _thisIGrid = grid; _thisEntity = grid; _thisGrid = (MyCubeGrid)grid; _thisController = controller; _thisGrid.OnFatBlockAdded += OnFatBlockAdded; _thisGrid.OnFatBlockRemoved += OnFatBlockRemoved; _thisGrid.OnClose += Close; _gridSystems = new GridSystems(_thisController); _gridSystems.OnWriteToLog += WriteToLog; _flightControl = new FlightControl(_thisGrid, _thisController, _gridSystems); _flightControl.OnWriteToLog += WriteToLog; }