public virtual void SendProgramResponseMessage(string response)
        {
            var msg = new ProgramRepsonseMsg();

            msg.EntityId = m_programmableBlock.EntityId;
            msg.Response = response;
            Sync.Layer.SendMessageToAll(ref msg, MyTransportMessageEnum.Success);
        }
        static void ProgramResponeSuccess(ref ProgramRepsonseMsg msg, MyNetworkClient sender)
        {
            MyEntity entity;

            MyEntities.TryGetEntityById(msg.EntityId, out entity);
            if (entity is MyProgrammableBlock)
            {
                (entity as MyProgrammableBlock).WriteProgramResponse(msg.Response);
            }
        }
 public virtual void SendProgramResponseMessage(string response)
 {
     var msg = new ProgramRepsonseMsg();
     msg.EntityId = m_programmableBlock.EntityId;
     msg.Response = response;
     Sync.Layer.SendMessageToAll(ref msg, MyTransportMessageEnum.Success);
 }
 static void ProgramResponeSuccess(ref ProgramRepsonseMsg msg, MyNetworkClient sender)
 {
     MyEntity entity;
     MyEntities.TryGetEntityById(msg.EntityId, out entity);
     if (entity is MyProgrammableBlock)
     {
         (entity as MyProgrammableBlock).WriteProgramResponse(msg.Response);
     }
 }