static void ProgramRecompileSuccess(ref ProgramRecompileMsg msg, MyNetworkClient sender)
        {
            MyEntity entity;

            MyEntities.TryGetEntityById(msg.EntityId, out entity);
            if (entity is MyProgrammableBlock)
            {
                (entity as MyProgrammableBlock).Recompile();
            }
        }
        public void SendProgramRecompile()
        {
            Debug.Assert(Sync.IsServer);
            if (!Sync.IsServer)
            {
                return;
            }

            var msg = new ProgramRecompileMsg();

            msg.EntityId = m_programmableBlock.EntityId;
            Sync.Layer.SendMessageToAllAndSelf(ref msg, MyTransportMessageEnum.Success);
        }
 static void ProgramRecompileSuccess(ref ProgramRecompileMsg msg, MyNetworkClient sender)
 {
     MyEntity entity;
     MyEntities.TryGetEntityById(msg.EntityId, out entity);
     if (entity is MyProgrammableBlock)
     {
         (entity as MyProgrammableBlock).Recompile();
     }
 }
        public void SendProgramRecompile()
        {
            Debug.Assert(Sync.IsServer);
            if (!Sync.IsServer) return;

            var msg = new ProgramRecompileMsg();
            msg.EntityId = m_programmableBlock.EntityId;
            Sync.Layer.SendMessageToAllAndSelf(ref msg, MyTransportMessageEnum.Success);
        }