Beispiel #1
0
        public static bool CanExamineEmptyCargoBox(MyCargoBox cargoBox, params object[] args)
        {
            if (IsBlocked(cargoBox, args))
            {
                return(false);
            }

            MySmallShip smallShip = GetSmallShipFromArguments(args);

            return(cargoBox.Inventory.GetInventoryItems().Count == 0 && IsLookAtTarget(smallShip, cargoBox) && ControlIsInPlayerShip());
        }
Beispiel #2
0
 public MyGuiScreenEditorCargoBox(MyCargoBox cargoBox)
     : base(cargoBox, new Vector2(0.5f, 0.5f), MyGuiConstants.SCREEN_BACKGROUND_COLOR, null, MyTextsWrapperEnum.EditCargoBox)
 {
     Init();
 }