Пример #1
0
        protected override bool Allow(GameHitParameters <GameObject> parameters)
        {
            if (!MasterController.Settings.mMenuVisibleTransferTo)
            {
                return(false);
            }

            if (parameters.mTarget is Sim)
            {
                return(false);
            }

            if (TransferFrom.GetInventory(parameters.mTarget) == null)
            {
                return(false);
            }

            return(base.Allow(parameters));
        }
Пример #2
0
 protected override OptionResult Run(GameHitParameters <GameObject> parameters)
 {
     if (NRaas.MasterControllerSpace.Sims.Basic.TransferTo.Perform(Name, parameters.mActor.IsFemale, parameters.mActor.Inventory, TransferFrom.GetInventory(parameters.mTarget)))
     {
         return(OptionResult.SuccessClose);
     }
     else
     {
         return(OptionResult.Failure);
     }
 }