public void SendChangeSensorMaxRequest(ref Vector3 fieldMax)
        {
            var msg = new ChangeMySensorMaxMsg();

            msg.EntityId = m_block.EntityId;
            msg.FieldMax = fieldMax;

            Sync.Layer.SendMessageToAll(ref msg, MyTransportMessageEnum.Success);
        }
        static void ChangeSensorMaxSuccess(ref ChangeMySensorMaxMsg msg, MyNetworkClient sender)
        {
            MyEntity entity;

            MyEntities.TryGetEntityById(msg.EntityId, out entity);
            var block = entity as MySensorBlock;

            if (block != null)
            {
                block.FieldMax = msg.FieldMax;
            }
        }
Пример #3
0
        static void ChangeSensorMaxRequest(ref ChangeMySensorMaxMsg msg, MyNetworkClient sender)
        {
            MyEntity entity;

            MyEntities.TryGetEntityById(msg.EntityId, out entity);
            var block = entity as MySensorBlock;

            if (block != null)
            {
                block.FieldMax = msg.FieldMax;
                Sync.Layer.SendMessageToAllButOne(ref msg, sender.SteamUserId, MyTransportMessageEnum.Success);
            }
        }
Пример #4
0
 static void ChangeSensorMaxSuccess(ref ChangeMySensorMaxMsg msg, MyNetworkClient sender)
 {
     MyEntity entity;
     MyEntities.TryGetEntityById(msg.EntityId, out entity);
     var block = entity as MySensorBlock;
     if (block != null)
     {
         block.FieldMax = msg.FieldMax;
     }
 }
Пример #5
0
        public void SendChangeSensorMaxRequest(ref Vector3 fieldMax)
        {
            var msg = new ChangeMySensorMaxMsg();
            msg.EntityId = m_block.EntityId;
            msg.FieldMax = fieldMax;

            Sync.Layer.SendMessageToAll(ref msg, MyTransportMessageEnum.Success);
        }
Пример #6
0
 static void ChangeSensorMaxRequest(ref ChangeMySensorMaxMsg msg, MyNetworkClient sender)
 {
     MyEntity entity;
     MyEntities.TryGetEntityById(msg.EntityId, out entity);
     var block = entity as MySensorBlock;
     if (block != null)
     {
         block.FieldMax = msg.FieldMax;
         Sync.Layer.SendMessageToAllButOne(ref msg, sender.SteamUserId,MyTransportMessageEnum.Success);
     }
 }