コード例 #1
0
        // Token: 0x06002099 RID: 8345 RVA: 0x0004D7A4 File Offset: 0x0004C7A4
        public override string Serialize()
        {
            string result;

            XSD2CPP.Writer(this, out result);
            return(result);
        }
コード例 #2
0
        // Token: 0x06002147 RID: 8519 RVA: 0x0004EEA0 File Offset: 0x0004DEA0
        public virtual string Serialize()
        {
            string result;

            XSD2CPP.Writer(this, out result);
            return(result);
        }
コード例 #3
0
        // 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);
        }
コード例 #4
0
        // 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);
        }
コード例 #5
0
        // Token: 0x0600214D RID: 8525 RVA: 0x0004EF24 File Offset: 0x0004DF24
        public virtual string Serialize()
        {
            string text;

            XSD2CPP.Writer(this, out text);
            return(text);
        }
コード例 #6
0
        // 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);
        }
コード例 #7
0
        // 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);
        }
コード例 #8
0
        // Token: 0x06001751 RID: 5969 RVA: 0x00029C40 File Offset: 0x00028C40
        public void Interupt(XmlString xmlString)
        {
            EventTimedOut eventTimedOut;

            if (XSD2CPP.ReadEventTimedOut(xmlString, out eventTimedOut) && this.EventSessionId == eventTimedOut.EventSessionId)
            {
                new OnInterupt().Post(Ports.Gameplay);
            }
        }
コード例 #9
0
        // 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);
            }
        }
コード例 #10
0
ファイル: Event.cs プロジェクト: RedTheKitsune/NFSWGameplay
 // Token: 0x06001709 RID: 5897 RVA: 0x00028BAC File Offset: 0x00027BAC
 public virtual void OnCollectCoinSucceeded(XmlString xmlString)
 {
     Victory.DataLayer.Serialization.Event.Accolades accolades;
     if (XSD2CPP.ReadAccolades(xmlString, out accolades))
     {
         this.StoreAccolades(accolades);
         new OnHuntCompleted().Post(Ports.Gameplay);
         return;
     }
     new OnHuntContinued().Post(Ports.Gameplay);
 }
コード例 #11
0
ファイル: Event.cs プロジェクト: RedTheKitsune/NFSWGameplay
 // Token: 0x06001706 RID: 5894 RVA: 0x00028B00 File Offset: 0x00027B00
 public virtual void AccoladesFetched(XmlString xmlString)
 {
     Victory.DataLayer.Serialization.Event.Accolades accolades;
     if (!XSD2CPP.ReadAccolades(xmlString, out accolades))
     {
         accolades = new Victory.DataLayer.Serialization.Event.Accolades();
     }
     this.StoreAccolades(accolades);
     if (this.mAccoladesCallback != null)
     {
         this.mAccoladesCallback.Respond(this.accolades);
         this.mAccoladesCallback.Destroy();
         this.mAccoladesCallback = null;
     }
 }
コード例 #12
0
        // Token: 0x06001750 RID: 5968 RVA: 0x00029BC8 File Offset: 0x00028BC8
        public void TimingOut(XmlString xmlString)
        {
            EventTimingOut eventTimingOut;

            if (XSD2CPP.ReadEventTimingOut(xmlString, out eventTimingOut) && this.EventSessionId == eventTimingOut.EventSessionId)
            {
                this.timingOutBeginning      = Simulation.GetTick();
                this.timingOutInMilliseconds = eventTimingOut.TimeInMilliseconds;
                LocalHumanOpponent localHumanOpponent = base.Manager.OpponentManager.FindLocalOpponent();
                if (localHumanOpponent != null)
                {
                    EntrantInfo entrantInfo = base.FindEntrant(localHumanOpponent.PersonaId);
                    if (entrantInfo != null && !entrantInfo.ScoringState.HasFinishReason)
                    {
                        Hud.EnableGadget("RaceCountdownTimer", true);
                    }
                }
            }
        }
コード例 #13
0
        // Token: 0x060018D1 RID: 6353 RVA: 0x0002C508 File Offset: 0x0002B508
        public void EntrantResultReceived(Event evnt, XmlString xmlString)
        {
            InstancedEvent    instancedEvent = evnt as InstancedEvent;
            DragEntrantResult dragEntrantResult;

            if (XSD2CPP.ReadDragEntrantResult(xmlString, out dragEntrantResult) && dragEntrantResult.EventSessionId == instancedEvent.EventSessionId)
            {
                EntrantInfo entrantInfo = evnt.FindEntrant(dragEntrantResult.PersonaId);
                if (entrantInfo == null)
                {
                    return;
                }
                DragScoringState dragScoringState = entrantInfo.ScoringState as DragScoringState;
                if (dragScoringState != null)
                {
                    dragScoringState.HasArbitrated = true;
                    dragScoringState.FinishReason  = (FinishReason)dragEntrantResult.FinishReason;
                    dragScoringState.EventDurationInMilliseconds = dragEntrantResult.EventDurationInMilliseconds;
                    dragScoringState.Rank     = dragEntrantResult.Ranking;
                    dragScoringState.TopSpeed = dragEntrantResult.TopSpeed;
                }
            }
        }
コード例 #14
0
        // Token: 0x06001953 RID: 6483 RVA: 0x0002DA28 File Offset: 0x0002CA28
        public void EntrantResultReceived(Event evnt, XmlString xmlString)
        {
            InstancedEvent     instancedEvent = evnt as InstancedEvent;
            RouteEntrantResult routeEntrantResult;

            if (XSD2CPP.ReadRouteEntrantResult(xmlString, out routeEntrantResult) && routeEntrantResult.EventSessionId == instancedEvent.EventSessionId)
            {
                EntrantInfo entrantInfo = evnt.FindEntrant(routeEntrantResult.PersonaId);
                if (entrantInfo == null)
                {
                    return;
                }
                RouteScoringState routeScoringState = entrantInfo.ScoringState as RouteScoringState;
                if (routeScoringState != null)
                {
                    routeScoringState.HasArbitrated = true;
                    routeScoringState.FinishReason  = (FinishReason)routeEntrantResult.FinishReason;
                    routeScoringState.EventDurationInMilliseconds = routeEntrantResult.EventDurationInMilliseconds;
                    routeScoringState.Rank     = routeEntrantResult.Ranking;
                    routeScoringState.TopSpeed = routeEntrantResult.TopSpeed;
                    routeScoringState.BestLapDurationInMilliseconds = routeEntrantResult.BestLapDurationInMilliseconds;
                }
            }
        }
コード例 #15
0
        // Token: 0x060019A1 RID: 6561 RVA: 0x0002EB5C File Offset: 0x0002DB5C
        public void EntrantResultReceived(Event evnt, XmlString xmlString)
        {
            InstancedEvent          instancedEvent = evnt as InstancedEvent;
            TeamEscapeEntrantResult teamEscapeEntrantResult;

            if (XSD2CPP.ReadTeamEscapeEntrantResult(xmlString, out teamEscapeEntrantResult) && teamEscapeEntrantResult.EventSessionId == instancedEvent.EventSessionId)
            {
                EntrantInfo entrantInfo = evnt.FindEntrant(teamEscapeEntrantResult.PersonaId);
                if (entrantInfo == null)
                {
                    return;
                }
                TeamEscapeScoringState teamEscapeScoringState = entrantInfo.ScoringState as TeamEscapeScoringState;
                if (teamEscapeScoringState != null)
                {
                    teamEscapeScoringState.HasArbitrated = true;
                    teamEscapeScoringState.FinishReason  = (FinishReason)teamEscapeEntrantResult.FinishReason;
                    teamEscapeScoringState.EventDurationInMilliseconds = teamEscapeEntrantResult.EventDurationInMilliseconds;
                    teamEscapeScoringState.FractionCompleted           = teamEscapeEntrantResult.FractionCompleted;
                    teamEscapeScoringState.DistanceToFinish            = teamEscapeEntrantResult.DistanceToFinish;
                    teamEscapeScoringState.Rank = teamEscapeEntrantResult.Ranking;
                }
            }
        }