Esempio n. 1
0
        protected static ListenerAction OnObjectBought(Sims3.Gameplay.EventSystem.Event e)
        {
            if (e.Id == EventTypeId.kBoughtObject)
            {
                Sims3.Gameplay.Objects.Decorations.Mimics.SculpturePlantFiccas obj = e.TargetObject as Sims3.Gameplay.Objects.Decorations.Mimics.SculpturePlantFiccas;
                if (obj != null)
                {
                    AddInteractions(obj);
                }
            }

            return(ListenerAction.Keep);
        }
Esempio n. 2
0
        public static void AddInteractions(Sims3.Gameplay.Objects.Decorations.Mimics.SculpturePlantFiccas obj)
        {
            foreach (InteractionObjectPair pair in obj.Interactions)
            {
                if (pair.InteractionDefinition.GetType() == Version.Singleton.GetType())
                {
                    return;
                }
            }

            obj.AddInteraction(OrientMe.Singleton);
            obj.AddInteraction(OrientOther.Singleton);
            obj.AddInteraction(Version.Singleton);
        }
Esempio n. 3
0
        public static void AddInteractions(Sims3.Gameplay.Objects.Decorations.Mimics.SculpturePlantFiccas obj)
        {
            foreach (InteractionObjectPair pair in obj.Interactions)
            {
                if (pair.InteractionDefinition.GetType() == Version.Singleton.GetType())
                {
                    return;
                }
            }

            obj.AddInteraction(SetRelationshp.Singleton);
            obj.AddInteraction(HigherLevel.Singleton);
            obj.AddInteraction(LowerLevel.Singleton);
            obj.AddInteraction(SetLevel.Singleton);
            obj.AddInteraction(StatePartner.Singleton);
            obj.AddInteraction(Version.Singleton);
        }