Inheritance: SkatingRink.Skate, Common.IPreLoad, Common.IAddInteraction
Beispiel #1
0
            public override InteractionInstance CreateInstance(ref InteractionInstanceParameters parameters)
            {
                InteractionInstance na = new SkateEx();

                na.Init(ref parameters);
                return(na);
            }
Beispiel #2
0
            public override bool SkatableObjectTest(Sim a, ISkatableObject target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
            {
                if (!target.IsActorUsingMe(a))
                {
                    return(false);
                }
                SkateEx currentInteraction = a.CurrentInteraction as SkateEx;

                return((currentInteraction != null) && currentInteraction.CanSingleSpin(ref greyedOutTooltipCallback));
            }
Beispiel #3
0
            private new List <Sim> GetValidSimsToSpinWith(Sim actor, ISkatableObject skateLocation)
            {
                List <Sim> lazyList = null;

                if ((skateLocation.Skaters == null) || (skateLocation.Skaters.Count < 2))
                {
                    return(null);
                }
                foreach (KeyValuePair <ulong, SkatingRink.Lane> pair in skateLocation.Skaters)
                {
                    Sim createdSim = SimDescription.GetCreatedSim(pair.Key);
                    if (createdSim != null)
                    {
                        SkateEx currentInteraction = createdSim.CurrentInteraction as SkateEx;
                        if (((currentInteraction != null) && currentInteraction.IsSkating) && !SkateHelper.CalculateIfActorIsOccultSkaterEx(actor))
                        {
                            Lazy.Add <List <Sim>, Sim>(ref lazyList, createdSim);
                        }
                    }
                }
                return(lazyList);
            }
Beispiel #4
0
 public override InteractionInstance CreateInstance(ref InteractionInstanceParameters parameters)
 {
     InteractionInstance na = new SkateEx();
     na.Init(ref parameters);
     return na;
 }