// Token: 0x06000BE1 RID: 3041 RVA: 0x0000ED7C File Offset: 0x0000DD7C public unsafe void SetCategory(string value) { int byteCount = Encoding.ASCII.GetByteCount(value); byte[] array = new byte[byteCount + 1]; Encoding.ASCII.GetBytes(value, 0, byteCount, array, 0); array[byteCount] = 0; fixed(byte *ptr = array) { RewardPart._EASharpBinding_1203(this.mSelf, (sbyte *)ptr); } }
// Token: 0x06001702 RID: 5890 RVA: 0x000286EC File Offset: 0x000276EC internal virtual void StoreAccolades(Victory.DataLayer.Serialization.Event.Accolades accolades) { this.accolades = new Interop.Accolades(); if (accolades.FinalRewards != null) { this.accolades.Reputation = accolades.FinalRewards.Rep; this.accolades.Tokens = accolades.FinalRewards.Tokens; } if (accolades.OriginalRewards != null) { this.accolades.OriginalReputation = accolades.OriginalRewards.Rep; this.accolades.OriginalTokens = accolades.OriginalRewards.Tokens; } this.accolades.HasLeveledUp = accolades.HasLeveledUp; if (accolades.LuckyDrawInfo != null) { LuckyDraw luckyDraw = this.accolades.GetLuckyDraw(); luckyDraw.HasLuckyDraw = (accolades.LuckyDrawInfo.Items != null && accolades.LuckyDrawInfo.Items.Count > 0); luckyDraw.SetCardDeck(accolades.LuckyDrawInfo.CardDeck); luckyDraw.NumCards = accolades.LuckyDrawInfo.NumCards; luckyDraw.NumBoxAnimations = accolades.LuckyDrawInfo.NumBoxAnimations; luckyDraw.CurrentStreak = accolades.LuckyDrawInfo.CurrentStreak; luckyDraw.IsStreakBroken = accolades.LuckyDrawInfo.IsStreakBroken; if (accolades.LuckyDrawInfo.Items != null) { foreach (LuckyDrawItem luckyDrawItem in accolades.LuckyDrawInfo.Items) { LuckyItem luckyItem = new LuckyItem(); luckyItem.SetVirtualItem(luckyDrawItem.VirtualItem); luckyItem.SetCategory(luckyDrawItem.VirtualItemType); luckyItem.SetDescription(luckyDrawItem.Description); luckyItem.SetIcon(luckyDrawItem.Icon); luckyItem.Value = luckyDrawItem.RemainingUseCount; luckyItem.Price = luckyDrawItem.ResellPrice; luckyItem.ItemType = Inventory.GetProductTypeFromString(luckyDrawItem.VirtualItemType); luckyItem.WasSold = luckyDrawItem.WasSold; luckyItem.PartID = luckyDrawItem.Hash; luckyDraw.AddItems(luckyItem); } } if (accolades.LuckyDrawInfo.Boxes != null) { foreach (LuckyDrawBox luckyDrawBox in accolades.LuckyDrawInfo.Boxes) { LuckyBox luckyBox = new LuckyBox(); luckyBox.IsValid = luckyDrawBox.IsValid; luckyBox.CategoryId = (LuckyBoxCategory)luckyDrawBox.LuckyDrawSetCategoryId; luckyBox.SetCategoryName(luckyDrawBox.LocalizationString); luckyDraw.AddBoxes(luckyBox); } } } if (accolades.RewardInfo != null) { foreach (Victory.DataLayer.Serialization.Event.RewardPart rewardPart in accolades.RewardInfo) { Interop.RewardPart rewardPart2 = new Interop.RewardPart(); rewardPart2.SetCategory(rewardPart.RewardCategory.ToString()); if (rewardPart.RepPart != 0) { rewardPart2.SetName(string.Format("REWARD_TYPE_{0}_REP", rewardPart.RewardType.ToString())); rewardPart2.SetType("rep"); rewardPart2.Value = rewardPart.RepPart; this.accolades.AddRewardParts(rewardPart2); } if (rewardPart.TokenPart != 0) { rewardPart2.SetName(string.Format("REWARD_TYPE_{0}_TOKEN", rewardPart.RewardType.ToString())); rewardPart2.SetType("tokens"); rewardPart2.Value = rewardPart.TokenPart; this.accolades.AddRewardParts(rewardPart2); } } } this.ScoringMethod.AccoladesFetched(this.accolades); }
// Token: 0x06000BD9 RID: 3033 RVA: 0x0000EC58 File Offset: 0x0000DC58 public RewardPart() : base(default(ExposeTag_NoInitOwned)) { this.mSelf = RewardPart._EASharpBinding_1199(); }
// Token: 0x06000C47 RID: 3143 RVA: 0x0000F440 File Offset: 0x0000E440 public void AddRewardParts(RewardPart value) { Accolades._EASharpBinding_1246(this.mSelf, object.ReferenceEquals(value, null) ? null : value._GetRaw()); }