public void ChangeFlightMode(FlightMode flightMode) { if (m_syncing) { return; } var msg = new ChangeFlightModeMsg(); msg.EntityId = m_remoteControl.EntityId; msg.NewFlightMode = flightMode; Sync.Layer.SendMessageToAllAndSelf(ref msg); }
private static void OnChangeFlightMode(MySyncRemoteControl sync, ref ChangeFlightModeMsg msg, MyNetworkClient sender) { sync.m_remoteControl.OnChangeFlightMode(msg.NewFlightMode); }
private static void OnChangeFlightMode(MySyncRemoteControl sync, ref ChangeFlightModeMsg msg, MyNetworkClient sender) { sync.m_remoteControl.OnChangeFlightMode(msg.NewFlightMode); if (Sync.IsServer) { Sync.Layer.SendMessageToAllButOne(ref msg, sender.SteamUserId); } }