Example #1
0
 static void ChangeUseConveyorSystemSucess(ref ChangeUseConveyorsMsg msg, MyNetworkClient sender)
 {
     MyEntity entity;
     if (MyEntities.TryGetEntityById(msg.GetEntityId(), out entity))
     {
         if (entity as IMyInventoryOwner != null)
             (entity as IMyInventoryOwner).UseConveyorSystem = msg.Value;
     }
 }
Example #2
0
        static void ChangeUseConveyorSystemSucess(ref ChangeUseConveyorsMsg msg, MyNetworkClient sender)
        {
            MyEntity entity;

            if (MyEntities.TryGetEntityById(msg.GetEntityId(), out entity))
            {
                if (entity as IMyInventoryOwner != null)
                {
                    (entity as IMyInventoryOwner).UseConveyorSystem = msg.Value;
                }
            }
        }
Example #3
0
 static void ChangeUseConveyorSystemSucess(ref ChangeUseConveyorsMsg msg, MyNetworkClient sender)
 {
     MyEntity entity;
     if (MyEntities.TryGetEntityById(msg.GetEntityId(), out entity))
     {
         if (entity as IMyInventoryOwner != null)
         {
             (entity as IMyInventoryOwner).UseConveyorSystem = msg.Value;
             if (Sync.IsServer)
             {
                 Sync.Layer.SendMessageToAllButOne(ref msg, sender.SteamUserId, MyTransportMessageEnum.Success);
             }
         }
     }
 }
Example #4
0
        static void ChangeUseConveyorSystemSucess(ref ChangeUseConveyorsMsg msg, MyNetworkClient sender)
        {
            MyEntity entity;

            if (MyEntities.TryGetEntityById(msg.GetEntityId(), out entity))
            {
                if (entity as IMyInventoryOwner != null)
                {
                    (entity as IMyInventoryOwner).UseConveyorSystem = msg.Value;
                    if (Sync.IsServer)
                    {
                        Sync.Layer.SendMessageToAllButOne(ref msg, sender.SteamUserId, MyTransportMessageEnum.Success);
                    }
                }
            }
        }