Exemple #1
0
        public void SendChangeFontColorRequest(Color color)
        {
            var msg = new ChangeFontColorMsg();

            msg.EntityId  = m_block.EntityId;
            msg.FontColor = color;

            Sync.Layer.SendMessageToServer(ref msg, MyTransportMessageEnum.Request);
        }
Exemple #2
0
        static void ChangeFontColorRequest(ref ChangeFontColorMsg msg, MyNetworkClient sender)
        {
            MyEntity entity;

            MyEntities.TryGetEntityById(msg.EntityId, out entity);
            if (entity is MyTextPanel)
            {
                Sync.Layer.SendMessageToAllAndSelf(ref msg, MyTransportMessageEnum.Success);
            }
        }
Exemple #3
0
        static void ChangeFontColorSuccess(ref ChangeFontColorMsg msg, MyNetworkClient sender)
        {
            MyEntity entity;

            MyEntities.TryGetEntityById(msg.EntityId, out entity);
            var textPanel = entity as MyTextPanel;

            if (textPanel != null)
            {
                textPanel.FontColor = msg.FontColor;
            }
        }
 static void ChangeFontColorSuccess(ref ChangeFontColorMsg msg, MyNetworkClient sender)
 {
     MyEntity entity;
     MyEntities.TryGetEntityById(msg.EntityId, out entity);
     var textPanel = entity as MyTextPanel;
     if (textPanel != null)
     {
         textPanel.FontColor = msg.FontColor;
     }
 }
 static void ChangeFontColorRequest(ref ChangeFontColorMsg msg, MyNetworkClient sender)
 {
     MyEntity entity;
     MyEntities.TryGetEntityById(msg.EntityId, out entity);
     if (entity is MyTextPanel)
     {
         Sync.Layer.SendMessageToAllAndSelf(ref msg, MyTransportMessageEnum.Success);
     }
 }
        public void SendChangeFontColorRequest(Color color)
        {
            var msg = new ChangeFontColorMsg();

            msg.EntityId = m_block.EntityId;
            msg.FontColor = color; 

            Sync.Layer.SendMessageToServer(ref msg, MyTransportMessageEnum.Request);
        }