public void SendAbortJump() { var msg = new AbortJumpMsg(); msg.EntityId = m_grid.EntityId; Sync.Layer.SendMessageToAll(ref msg); }
private static void OnAbortJump(ref AbortJumpMsg msg, MyNetworkClient sender) { MyCubeGrid cubeGrid; MyEntities.TryGetEntityById(msg.EntityId, out cubeGrid); if (cubeGrid != null) { cubeGrid.GridSystems.JumpSystem.AbortJump(); } }
private static void OnAbortJump(ref AbortJumpMsg msg, MyNetworkClient sender) { MyCubeGrid cubeGrid; MyEntities.TryGetEntityById(msg.EntityId, out cubeGrid); if (cubeGrid != null) { cubeGrid.GridSystems.JumpSystem.AbortJump(); } }
public void SendAbortJump() { var msg = new AbortJumpMsg(); msg.EntityId = m_grid.EntityId; Sync.Layer.SendMessageToAll(ref msg); }