// Token: 0x06004C9E RID: 19614 RVA: 0x00178F6C File Offset: 0x0017716C public void RandomGroupGenerateRandomEvent(int levelZoneId, int groupId, int maxCount) { RandomEventLevelZone randomEventLevelZone; RandomEventGroup randomEventGroup; if (this.RandomLevelZone.TryGetValue(levelZoneId, out randomEventLevelZone)) { if (randomEventLevelZone.Groups.TryGetValue(groupId, out randomEventGroup)) { randomEventGroup.Nums++; base.SetDirty(true); return; } } else { randomEventLevelZone = new RandomEventLevelZone(); randomEventLevelZone.LevelZoneId = levelZoneId; this.RandomLevelZone.Add(randomEventLevelZone.LevelZoneId, randomEventLevelZone); } randomEventGroup = new RandomEventGroup(); randomEventGroup.Index = groupId; randomEventGroup.MaxNums = maxCount; randomEventGroup.Nums = 1; randomEventLevelZone.Groups.Add(groupId, randomEventGroup); base.SetDirty(true); }
// Token: 0x06004C9F RID: 19615 RVA: 0x00179008 File Offset: 0x00177208 public void AddRandomEventLevelZone(int index, RandomEventLevelZone zone) { if (this.RandomLevelZone.ContainsKey(index)) { return; } this.RandomLevelZone.Add(index, zone); base.SetDirty(true); }
// Token: 0x06003C61 RID: 15457 RVA: 0x00111F48 File Offset: 0x00110148 public static string RandomEventLevelZoneReportLog(RandomEventLevelZone zone, string zoneName) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendLine(); string value = string.Format("{0}_{1} LevelZoneId = {2}###############", CommonReportLog.RandomEventFunctionHeader, zoneName, zone.LevelZoneId); stringBuilder.AppendLine(value); foreach (RandomEventGroup group in zone.Groups.Values) { stringBuilder.AppendLine(CommonReportLog.Message(group)); } stringBuilder.AppendLine(); return(stringBuilder.ToString()); }
// Token: 0x06004C9C RID: 19612 RVA: 0x00178F20 File Offset: 0x00177120 public void SetDefiniteEventLevelZone(RandomEventLevelZone zone) { this.DefiniteLevelZone = zone; base.SetDirty(true); }
// Token: 0x06004C97 RID: 19607 RVA: 0x00178E7C File Offset: 0x0017707C public void InitDefiniteLevelZone(RandomEventLevelZone zone) { this.DefiniteLevelZone = zone; }