示例#1
0
            public void SendJumpFailure()
            {
                var msg = new JumpFailureMsg();

                msg.EntityId = m_grid.EntityId;

                Sync.Layer.SendMessageToAllAndSelf(ref msg);
            }
示例#2
0
            private static void OnJumpFailure(ref JumpFailureMsg msg, MyNetworkClient sender)
            {
                MyCubeGrid cubeGrid;

                MyEntities.TryGetEntityById(msg.EntityId, out cubeGrid);
                if (cubeGrid != null)
                {
                    //TODO(AF) Add a notification, maybe a reason
                }
            }
 private static void OnJumpFailure(ref JumpFailureMsg msg, MyNetworkClient sender)
 {
     MyCubeGrid cubeGrid;
     MyEntities.TryGetEntityById(msg.EntityId, out cubeGrid);
     if (cubeGrid != null)
     {
         //TODO(AF) Add a notification, maybe a reason
     }
 }
            public void SendJumpFailure()
            {
                var msg = new JumpFailureMsg();
                msg.EntityId = m_grid.EntityId;

                Sync.Layer.SendMessageToAllAndSelf(ref msg);
            }