public override void PopulatePieMenuPicker(ref InteractionInstanceParameters parameters, out List <ObjectPicker.TabInfo> listObjs, out List <ObjectPicker.HeaderInfo> headers, out int NumSelectableRows) { Sim actor = parameters.Actor as Sim; NumSelectableRows = 1; ISkatableObject skateLocationFromParameters = base.GetSkateLocationFromParameters(parameters); base.PopulateSimPicker(ref parameters, out listObjs, out headers, this.GetValidSimsToSpinWith(actor, skateLocationFromParameters), false); }
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)); }
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)); }
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; }
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); }
public override string GetInteractionName(Sim actor, ISkatableObject target, InteractionObjectPair iop) { return base.GetInteractionName(actor, target, new InteractionObjectPair(sOldSingleton, target)); }
public override string GetInteractionName(Sim actor, ISkatableObject target, InteractionObjectPair iop) { return(base.GetInteractionName(actor, target, new InteractionObjectPair(sOldSingleton, target))); }