Esempio n. 1
0
        public static void PerformeInteraction(Sim sim, SculptureFloorClothingRack2x1 target, InteractionDefinition definition)
        {
            InteractionPriority priority = new InteractionPriority(InteractionPriorityLevel.UserDirected);
            InteractionInstance entry    = definition.CreateInstance(target, sim, priority, false, true);

            sim.InteractionQueue.Add(entry);
        }
Esempio n. 2
0
        protected static ListenerAction OnNewObject(Event e)
        {
            Dresser targetObject = e.TargetObject as Dresser;

            if (targetObject != null)
            {
                RemoveInteraction(targetObject);
            }
            else
            {
                SculptureFloorClothingRack2x1 rackx = e.TargetObject as SculptureFloorClothingRack2x1;
                if (rackx != null)
                {
                    AddInteractions(rackx);
                }
            }
            return(ListenerAction.Keep);
        }
Esempio n. 3
0
 public static void PerformeInteraction(Sim sim, SculptureFloorClothingRack2x1 target, InteractionDefinition definition)
 {
     InteractionPriority priority = new InteractionPriority(InteractionPriorityLevel.UserDirected);
     InteractionInstance entry = definition.CreateInstance(target, sim, priority, false, true);
     sim.InteractionQueue.Add(entry);
 }