static void OnSelectImageSucess(ref SelectImagesMsg msg, MyNetworkClient sender) { MyEntity entity = null; MyEntities.TryGetEntityById(msg.EntityId, out entity); MyTextPanel block = entity as MyTextPanel; if (block != null) { block.SelectItems(msg.Selection); } }
static void OnSelectImageRequest(ref SelectImagesMsg msg, MyNetworkClient sender) { MyEntity entity = null; MyEntities.TryGetEntityById(msg.EntityId, out entity); MyTextPanel block = entity as MyTextPanel; if (block != null) { block.SelectItems(msg.Selection); Sync.Layer.SendMessageToAll(ref msg, MyTransportMessageEnum.Success); } }