public void SendPerformJump(Vector3D jumpTarget) { var msg = new PerformJumpMsg(); msg.EntityId = m_grid.EntityId; msg.JumpTarget = jumpTarget; Sync.Layer.SendMessageToAll(ref msg); }
private static void OnPerformJump(ref PerformJumpMsg msg, MyNetworkClient sender) { MyCubeGrid cubeGrid; MyEntities.TryGetEntityById(msg.EntityId, out cubeGrid); if (cubeGrid != null) { cubeGrid.GridSystems.JumpSystem.PerformJump(msg.JumpTarget); } }