示例#1
0
        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);
            }
        }
示例#2
0
        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);
            }
        }