Beispiel #1
0
        public override void SwitchIntoOutfit()
        {
            //Message.Sender.Show("Switching into outft");
            try
            {
                Lot roleLot = (base.RoleGivingObject as DrunkardsBottle).GetTargetLot();
                if (roleLot != null)
                {
                    this.mSim.CreatedSim.InteractionQueue.CancelAllInteractions();

                    Lot.MetaAutonomyType          venueType  = roleLot.GetMetaAutonomyType;
                    SimIFace.CAS.OutfitCategories outfitType = SimIFace.CAS.OutfitCategories.Everyday;
                    if (venueType == Lot.MetaAutonomyType.CocktailLoungeAsian || venueType == Lot.MetaAutonomyType.CocktailLoungeCelebrity || venueType == Lot.MetaAutonomyType.CocktailLoungeVampire)
                    {
                        outfitType = SimIFace.CAS.OutfitCategories.Formalwear;
                    }

                    this.mSim.CreatedSim.SwitchToOutfitWithoutSpin(Sim.ClothesChangeReason.GoingToWork, outfitType);
                    if (Message.Sender.IsDebugging())
                    {
                        Message.Sender.Debug(this, "Role clothing change request for "
                                             + mSim.FullName + " " + outfitType.ToString());
                    }
                }
            }
            catch (Exception e)
            {
                Message.Sender.ShowError(this, "Cannot change tippler's clothes: ", false, e);
            }
        }
        private void SwitchToProperClothing(Lot.MetaAutonomyType venueType, Sim sim, bool spin)
        {
            SimIFace.CAS.OutfitCategories outfitType = SimIFace.CAS.OutfitCategories.Everyday;
            if (venueType == Lot.MetaAutonomyType.CocktailLoungeAsian || venueType == Lot.MetaAutonomyType.CocktailLoungeCelebrity || venueType == Lot.MetaAutonomyType.CocktailLoungeVampire)
            {
                outfitType = SimIFace.CAS.OutfitCategories.Formalwear;
            }

            if (spin)
            {
                sim.SwitchToOutfitWithSpin(Sim.ClothesChangeReason.GoingToWork, outfitType);
                if (Message.Sender.IsDebugging())
                {
                    Message.Sender.Debug(this, "Role clothing change request (with spin) for "
                                         + mSim.FullName + " " + outfitType.ToString());
                }
            }
            else
            {
                sim.SwitchToOutfitWithoutSpin(Sim.ClothesChangeReason.GoingToWork, outfitType);
                if (Message.Sender.IsDebugging())
                {
                    Message.Sender.Debug(this, "Role clothing change request (without spin) for "
                                         + mSim.FullName + " " + outfitType.ToString());
                }
            }
        }
        public static void SwitchToProperClothing(Sim sim, Lot.MetaAutonomyType venueType)
        {
            SimIFace.CAS.OutfitCategories outfitType = SimIFace.CAS.OutfitCategories.Everyday;
            if (venueType == Lot.MetaAutonomyType.CocktailLoungeAsian || venueType == Lot.MetaAutonomyType.CocktailLoungeCelebrity || venueType == Lot.MetaAutonomyType.CocktailLoungeVampire)
            {
                outfitType = SimIFace.CAS.OutfitCategories.Formalwear;
            }

            sim.SwitchToOutfitWithoutSpin(Sim.ClothesChangeReason.GoingToWork, outfitType);
        }