// Token: 0x060018D2 RID: 6354 RVA: 0x0002C58C File Offset: 0x0002B58C public EventResult Arbitrated(Event evnt, XmlString xmlString) { InstancedEvent instancedEvent = evnt as InstancedEvent; DragEventResult dragEventResult; if (XSD2CPP.ReadDragEventResult(xmlString, out dragEventResult) && dragEventResult.EventSessionId == instancedEvent.EventSessionId) { foreach (DragEntrantResult dragEntrantResult in dragEventResult.Entrants) { if (dragEntrantResult.FinishReason != 0) { EntrantInfo entrantInfo = evnt.FindEntrant(dragEntrantResult.PersonaId); if (entrantInfo != null) { DragScoringState dragScoringState = entrantInfo.ScoringState as DragScoringState; if (dragScoringState != null && !dragScoringState.HasArbitrated) { dragScoringState.HasArbitrated = true; dragScoringState.FinishReason = (FinishReason)dragEntrantResult.FinishReason; dragScoringState.EventDurationInMilliseconds = dragEntrantResult.EventDurationInMilliseconds; dragScoringState.Rank = dragEntrantResult.Ranking; dragScoringState.TopSpeed = dragEntrantResult.TopSpeed; } } } } Marshal.Get().SetLocalPlayersDurability(dragEventResult.Durability); return(dragEventResult); } return(null); }
// Token: 0x06001917 RID: 6423 RVA: 0x0002CB2C File Offset: 0x0002BB2C public void Fill(ArbitratedPacket arbitratedPacket, EntrantInfo entrant) { PursuitArbitratedPacket pursuitArbitratedPacket = arbitratedPacket as PursuitArbitratedPacket; PursuitScoringState pursuitScoringState = entrant.ScoringState as PursuitScoringState; if (pursuitScoringState != null && null != pursuitArbitratedPacket) { PursuitEntrantArbitratedPacket pursuitEntrantArbitratedPacket = pursuitArbitratedPacket.CreateEntrantArbitratedPacket(); Marshal.Get().FillFEPlayerPersona(entrant.PersonaId, pursuitEntrantArbitratedPacket); pursuitEntrantArbitratedPacket.PersonaId = entrant.PersonaId; pursuitEntrantArbitratedPacket.SetPersonaName(entrant.Opponent.OpponentName); pursuitEntrantArbitratedPacket.SetMotto(entrant.Opponent.Motto); pursuitEntrantArbitratedPacket.HasArbitrated = pursuitScoringState.HasArbitrated; pursuitEntrantArbitratedPacket.FinishReason = pursuitScoringState.FinishReason; pursuitEntrantArbitratedPacket.Rank = pursuitScoringState.Rank; pursuitEntrantArbitratedPacket.Level = pursuitScoringState.Level; pursuitEntrantArbitratedPacket.IconIndex = (long)((ulong)entrant.Opponent.IconIndex); pursuitEntrantArbitratedPacket.IsLocal = (entrant.Opponent is LocalHumanOpponent); pursuitEntrantArbitratedPacket.EventDuration = pursuitScoringState.EventDurationInSeconds; Powerups.FillEntrantArbitratedPacket(pursuitEntrantArbitratedPacket); entrant.Opponent.FillCarData(pursuitEntrantArbitratedPacket.GetCarData()); pursuitEntrantArbitratedPacket.LongestJumpDuration = pursuitScoringState.LongestAirTimeInSeconds; pursuitEntrantArbitratedPacket.TopSpeed = pursuitScoringState.TopSpeed; pursuitEntrantArbitratedPacket.CopsDeployed = pursuitScoringState.CopsDeployed; pursuitEntrantArbitratedPacket.CopsDisabled = pursuitScoringState.CopsDisabled; pursuitEntrantArbitratedPacket.CopsRammed = pursuitScoringState.CopsRammed; pursuitEntrantArbitratedPacket.CostToState = pursuitScoringState.CostToState; pursuitEntrantArbitratedPacket.Heat = pursuitScoringState.Heat; pursuitEntrantArbitratedPacket.Infractions = pursuitScoringState.Infractions; pursuitEntrantArbitratedPacket.RoadBlocksDodged = pursuitScoringState.RoadBlocksDodged; pursuitEntrantArbitratedPacket.SpikeStripsDodged = pursuitScoringState.SpikeStripsDodged; } }
// Token: 0x06001947 RID: 6471 RVA: 0x0002D328 File Offset: 0x0002C328 public void Fill(ArbitratedPacket arbitratedPacket, EntrantInfo entrant) { RouteArbitratedPacket routeArbitratedPacket = arbitratedPacket as RouteArbitratedPacket; RouteScoringState routeScoringState = entrant.ScoringState as RouteScoringState; if (routeScoringState != null && null != routeArbitratedPacket) { RouteEntrantArbitratedPacket routeEntrantArbitratedPacket = routeArbitratedPacket.CreateEntrantArbitratedPacket(); Marshal.Get().FillFEPlayerPersona(entrant.PersonaId, routeEntrantArbitratedPacket); routeEntrantArbitratedPacket.PersonaId = entrant.PersonaId; routeEntrantArbitratedPacket.SetPersonaName(entrant.Opponent.OpponentName); routeEntrantArbitratedPacket.SetMotto(entrant.Opponent.Motto); routeEntrantArbitratedPacket.HasArbitrated = routeScoringState.HasArbitrated; routeEntrantArbitratedPacket.FinishReason = routeScoringState.FinishReason; routeEntrantArbitratedPacket.Rank = routeScoringState.Rank; routeEntrantArbitratedPacket.Level = routeScoringState.Level; routeEntrantArbitratedPacket.IconIndex = (long)((ulong)entrant.Opponent.IconIndex); routeEntrantArbitratedPacket.IsLocal = (entrant.Opponent is LocalHumanOpponent); routeEntrantArbitratedPacket.EventDuration = routeScoringState.EventDurationInSeconds; Powerups.FillEntrantArbitratedPacket(routeEntrantArbitratedPacket); entrant.Opponent.FillCarData(routeEntrantArbitratedPacket.GetCarData()); routeEntrantArbitratedPacket.BestLapDuration = routeScoringState.BestLapDurationInSeconds; routeEntrantArbitratedPacket.TopSpeed = routeScoringState.TopSpeed; } }
// Token: 0x06001920 RID: 6432 RVA: 0x0002CED8 File Offset: 0x0002BED8 public EventResult Arbitrated(Event evnt, XmlString xmlString) { InstancedEvent instancedEvent = evnt as InstancedEvent; PursuitEventResult pursuitEventResult; if (!XSD2CPP.ReadPursuitEventResult(xmlString, out pursuitEventResult) || pursuitEventResult.EventSessionId != instancedEvent.EventSessionId) { return(null); } EntrantInfo entrantInfo = evnt.FindEntrant(pursuitEventResult.PersonaId); if (entrantInfo == null) { return(null); } LocalHumanOpponent localHumanOpponent = entrantInfo.Opponent as LocalHumanOpponent; if (localHumanOpponent != null) { localHumanOpponent.Heat = pursuitEventResult.Heat; } PursuitScoringState pursuitScoringState = entrantInfo.ScoringState as PursuitScoringState; if (pursuitScoringState != null) { pursuitScoringState.HasArbitrated = true; } Marshal.Get().SetLocalPlayersDurability(pursuitEventResult.Durability); return(pursuitEventResult); }
// Token: 0x06001954 RID: 6484 RVA: 0x0002DAB8 File Offset: 0x0002CAB8 public EventResult Arbitrated(Event evnt, XmlString xmlString) { InstancedEvent instancedEvent = evnt as InstancedEvent; RouteEventResult routeEventResult; if (XSD2CPP.ReadRouteEventResult(xmlString, out routeEventResult) && routeEventResult.EventSessionId == instancedEvent.EventSessionId) { foreach (RouteEntrantResult routeEntrantResult in routeEventResult.Entrants) { EntrantInfo entrantInfo = evnt.FindEntrant(routeEntrantResult.PersonaId); if (entrantInfo != null) { RouteScoringState routeScoringState = entrantInfo.ScoringState as RouteScoringState; if (routeScoringState != null && !routeScoringState.HasArbitrated) { routeScoringState.HasArbitrated = true; routeScoringState.FinishReason = (FinishReason)routeEntrantResult.FinishReason; routeScoringState.EventDurationInMilliseconds = routeEntrantResult.EventDurationInMilliseconds; routeScoringState.Rank = routeEntrantResult.Ranking; routeScoringState.TopSpeed = routeEntrantResult.TopSpeed; routeScoringState.BestLapDurationInMilliseconds = routeEntrantResult.BestLapDurationInMilliseconds; } } } Marshal.Get().SetLocalPlayersDurability(routeEventResult.Durability); return(routeEventResult); } return(null); }
// Token: 0x060019A0 RID: 6560 RVA: 0x0002EA54 File Offset: 0x0002DA54 public EventResult Arbitrated(Event evnt, XmlString xmlString) { InstancedEvent instancedEvent = evnt as InstancedEvent; TeamEscapeEventResult teamEscapeEventResult; if (XSD2CPP.ReadTeamEscapeEventResult(xmlString, out teamEscapeEventResult) && teamEscapeEventResult.EventSessionId == instancedEvent.EventSessionId) { foreach (TeamEscapeEntrantResult teamEscapeEntrantResult in teamEscapeEventResult.Entrants) { EntrantInfo entrantInfo = evnt.FindEntrant(teamEscapeEntrantResult.PersonaId); if (entrantInfo != null) { TeamEscapeScoringState teamEscapeScoringState = entrantInfo.ScoringState as TeamEscapeScoringState; if (teamEscapeScoringState != null && !teamEscapeScoringState.HasArbitrated && teamEscapeEntrantResult.FinishReason != 0) { teamEscapeScoringState.HasArbitrated = true; teamEscapeScoringState.FinishReason = (FinishReason)teamEscapeEntrantResult.FinishReason; teamEscapeScoringState.EventDurationInMilliseconds = teamEscapeEntrantResult.EventDurationInMilliseconds; teamEscapeScoringState.FractionCompleted = teamEscapeEntrantResult.FractionCompleted; teamEscapeScoringState.DistanceToFinish = teamEscapeEntrantResult.DistanceToFinish; teamEscapeScoringState.Rank = teamEscapeEntrantResult.Ranking; } } } Marshal.Get().SetLocalPlayersDurability(teamEscapeEventResult.Durability); return(teamEscapeEventResult); } return(null); }
// Token: 0x06001993 RID: 6547 RVA: 0x0002E1B4 File Offset: 0x0002D1B4 public void Fill(ArbitratedPacket arbitratedPacket, EntrantInfo entrant) { TeamEscapeArbitratedPacket teamEscapeArbitratedPacket = arbitratedPacket as TeamEscapeArbitratedPacket; TeamEscapeScoringState teamEscapeScoringState = entrant.ScoringState as TeamEscapeScoringState; if (null != teamEscapeArbitratedPacket && teamEscapeScoringState != null) { TeamEscapeEntrantArbitratedPacket teamEscapeEntrantArbitratedPacket = teamEscapeArbitratedPacket.CreateEntrantArbitratedPacket(); Marshal.Get().FillFEPlayerPersona(entrant.PersonaId, teamEscapeEntrantArbitratedPacket); teamEscapeEntrantArbitratedPacket.PersonaId = entrant.PersonaId; teamEscapeEntrantArbitratedPacket.SetPersonaName(entrant.Opponent.OpponentName); teamEscapeEntrantArbitratedPacket.SetMotto(entrant.Opponent.Motto); teamEscapeEntrantArbitratedPacket.HasArbitrated = teamEscapeScoringState.HasArbitrated; teamEscapeEntrantArbitratedPacket.FinishReason = teamEscapeScoringState.FinishReason; teamEscapeEntrantArbitratedPacket.Rank = teamEscapeScoringState.Rank; teamEscapeEntrantArbitratedPacket.Level = teamEscapeScoringState.Level; teamEscapeEntrantArbitratedPacket.IconIndex = (long)((ulong)entrant.Opponent.IconIndex); teamEscapeEntrantArbitratedPacket.IsLocal = (entrant.Opponent is LocalHumanOpponent); teamEscapeEntrantArbitratedPacket.EventDuration = teamEscapeScoringState.EventDurationInSeconds; Powerups.FillEntrantArbitratedPacket(teamEscapeEntrantArbitratedPacket); entrant.Opponent.FillCarData(teamEscapeEntrantArbitratedPacket.GetCarData()); teamEscapeEntrantArbitratedPacket.DistanceToFinish = teamEscapeScoringState.DistanceToFinish; teamEscapeEntrantArbitratedPacket.Strikes = teamEscapeScoringState.Busts; teamEscapeArbitratedPacket.Strikes += teamEscapeScoringState.Busts; teamEscapeArbitratedPacket.EventDuration = ((teamEscapeScoringState.EventDurationInSeconds > teamEscapeArbitratedPacket.EventDuration) ? teamEscapeScoringState.EventDurationInSeconds : teamEscapeArbitratedPacket.EventDuration); } }
// Token: 0x0600121D RID: 4637 RVA: 0x0001A2F2 File Offset: 0x000192F2 protected internal override void Execute(ActivityExecutionContext context) { base.Execute(context); if (Marshal.Get().IsTutorialComplete(this.source) == this.complete) { base.Close(); } }
// Token: 0x060013B4 RID: 5044 RVA: 0x0001CB28 File Offset: 0x0001BB28 protected internal override void Execute(ActivityExecutionContext context) { TreasureHuntScoringState treasureHuntScoringState = base.Entrant.ScoringState as TreasureHuntScoringState; if (treasureHuntScoringState.GetNumberOfCollectedCoins() != base.Event.EventDef.Num_Coins()) { Marshal.Get().SendNews(9223372036854775807UL, "TXT_NEWS_TREASURE_HUNT_SHORT", "TXT_NEWS_TREASURE_HUNT"); } }
// Token: 0x06001335 RID: 4917 RVA: 0x0001BB98 File Offset: 0x0001AB98 protected internal override void Execute(ActivityExecutionContext context) { LocalHumanOpponent localHumanOpponent = base.Entrant.Opponent as LocalHumanOpponent; if (localHumanOpponent != null) { Marshal.Get().EnableGhosting(this.enabled, this.durationInSeconds * 1000f); } base.Entrant.Opponent.Vehicle.EnableInvulnerability(this.enabled, this.durationInSeconds); }
// Token: 0x0600126E RID: 4718 RVA: 0x0001A8B4 File Offset: 0x000198B4 private void OnSucceeded(XmlString response) { List <LevelGiftDefinition> list; bool flag = XSD2CPP.ReadArrayOfLevelGiftDefinition(response, out list); if (flag && list.Count > 0) { Marshal.Get().ShowSpeedBoostTutorial(list[0].Boost, false); } }
// Token: 0x0600135F RID: 4959 RVA: 0x0001C020 File Offset: 0x0001B020 protected override void OnExecute(ActivityExecutionContext context) { LocalHumanOpponent localHumanOpponent = base.Entrant.Opponent as LocalHumanOpponent; if (localHumanOpponent != null) { if (Marshal.Get().IsTutorialComplete(this.source)) { this.Close(); return; } if (!Marshal.Get().HandleTutorial(this.source)) { this.Close(); } } }
// Token: 0x060018C6 RID: 6342 RVA: 0x0002BF78 File Offset: 0x0002AF78 public void Fill(ArbitratedPacket arbitratedPacket, EntrantInfo entrant) { DragArbitratedPacket dragArbitratedPacket = arbitratedPacket as DragArbitratedPacket; DragScoringState dragScoringState = entrant.ScoringState as DragScoringState; if (dragScoringState != null && null != dragArbitratedPacket) { DragEntrantArbitratedPacket dragEntrantArbitratedPacket = dragArbitratedPacket.CreateEntrantArbitratedPacket(); Marshal.Get().FillFEPlayerPersona(entrant.PersonaId, dragEntrantArbitratedPacket); dragEntrantArbitratedPacket.PersonaId = entrant.PersonaId; dragEntrantArbitratedPacket.SetPersonaName(entrant.Opponent.OpponentName); dragEntrantArbitratedPacket.SetMotto(entrant.Opponent.Motto); dragEntrantArbitratedPacket.HasArbitrated = dragScoringState.HasArbitrated; dragEntrantArbitratedPacket.FinishReason = dragScoringState.FinishReason; dragEntrantArbitratedPacket.Rank = dragScoringState.Rank; dragEntrantArbitratedPacket.Level = dragScoringState.Level; dragEntrantArbitratedPacket.IconIndex = (long)((ulong)entrant.Opponent.IconIndex); dragEntrantArbitratedPacket.IsLocal = (entrant.Opponent is LocalHumanOpponent); dragEntrantArbitratedPacket.EventDuration = dragScoringState.EventDurationInSeconds; Powerups.FillEntrantArbitratedPacket(dragEntrantArbitratedPacket); entrant.Opponent.FillCarData(dragEntrantArbitratedPacket.GetCarData()); dragEntrantArbitratedPacket.TopSpeed = dragScoringState.TopSpeed; } }
// Token: 0x0600123F RID: 4671 RVA: 0x0001A50A File Offset: 0x0001950A protected internal override void Execute(ActivityExecutionContext context) { Marshal.Get().EnableKeyboard(this.enable); }