Exemple #1
0
            public void SendPerformJump(Vector3D jumpTarget)
            {
                var msg = new PerformJumpMsg();

                msg.EntityId   = m_grid.EntityId;
                msg.JumpTarget = jumpTarget;

                Sync.Layer.SendMessageToAll(ref msg);
            }
Exemple #2
0
            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);
                }
            }
 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);
     }
 }
            public void SendPerformJump(Vector3D jumpTarget)
            {
                var msg = new PerformJumpMsg();
                msg.EntityId = m_grid.EntityId;
                msg.JumpTarget = jumpTarget;

                Sync.Layer.SendMessageToAll(ref msg);
            }