// Token: 0x060019B1 RID: 6577 RVA: 0x0002EEA8 File Offset: 0x0002DEA8 public void Fill(LivePacket livePacket, Event evnt) { TreasureHuntLivePacket treasureHuntLivePacket = livePacket as TreasureHuntLivePacket; if (null != treasureHuntLivePacket) { treasureHuntLivePacket.NumCoinsToCollect = (int)((evnt.EventDef.Num_Coins() != 100u) ? evnt.EventDef.Num_Coins() : 0u); } }
// Token: 0x060019B2 RID: 6578 RVA: 0x0002EEE8 File Offset: 0x0002DEE8 public void Fill(LivePacket livePacket, EntrantInfo entrant) { TreasureHuntLivePacket treasureHuntLivePacket = livePacket as TreasureHuntLivePacket; TreasureHuntScoringState treasureHuntScoringState = entrant.ScoringState as TreasureHuntScoringState; if (null != treasureHuntLivePacket && treasureHuntScoringState != null) { TreasureHuntEntrantLivePacket treasureHuntEntrantLivePacket = treasureHuntLivePacket.CreateEntrantLivePacket(); treasureHuntEntrantLivePacket.PersonaId = entrant.PersonaId; treasureHuntEntrantLivePacket.SetPersonaName(entrant.Opponent.OpponentName); treasureHuntEntrantLivePacket.FinishReason = treasureHuntScoringState.FinishReason; treasureHuntEntrantLivePacket.Rank = treasureHuntScoringState.Rank; treasureHuntEntrantLivePacket.IsLocal = (entrant.Opponent is LocalHumanOpponent); treasureHuntEntrantLivePacket.NumCoinsCollected = (int)treasureHuntScoringState.GetNumberOfCollectedCoins(); } }