// Token: 0x06001D6E RID: 7534 RVA: 0x0005EB80 File Offset: 0x0005CD80 public static bool smethod_6(Class142 toontownWindow, ManualResetEventSlim waitHandle, Class101 wayPointsSettings, Class108 dock, Class104 settings) { Struct56? @struct = Class269.smethod_0(toontownWindow, waitHandle, -1); if (@struct == null) { return(false); } if (@struct.Value.IsDock) { return(true); } Enum57 playground = toontownWindow.Playground; Dictionary <PointF, Enum99> points_dic; if (wayPointsSettings.WayPoints.ContainsKey(playground)) { points_dic = wayPointsSettings.WayPoints[playground]; } else { points_dic = null; } List <PointF> path = Class269.smethod_21(points_dic, @struct.Value.Location, dock.DockLocation); return(Class269.smethod_7(toontownWindow, waitHandle, path, settings)); }
// Token: 0x06001DC9 RID: 7625 RVA: 0x0000B3F4 File Offset: 0x000095F4 private void method_17(Enum57 playground) { if (this.eventHandler_9 != null) { this.eventHandler_9(this, new EventArgs30(playground)); } }
// Token: 0x060019FB RID: 6651 RVA: 0x000499B8 File Offset: 0x00047BB8 private void Playgrounds_SelectedIndexChanged(object sender, EventArgs e) { if (this.Playgrounds.SelectedItem != null) { Enum57 @enum = (Enum57)this.Playgrounds.SelectedItem; WayPointEditor.Class200 @class; if (this.dictionary_0.ContainsKey(@enum)) { @class = this.dictionary_0[@enum]; if ([email protected]) { this.PlaygroundList.SelectedItems.Clear(); this.dictionary_0[@enum].Selected = true; } } else { @class = new WayPointEditor.Class200(@enum); this.class101_0.WayPoints.Add(@enum, new Dictionary <PointF, Enum99>()); this.PlaygroundList.Items.Add(@class); this.dictionary_0.Add(@enum, @class); @class.Selected = true; this.PlaygroundList.Sort(); } this.PlaygroundList.EnsureVisible(@class.Index); } }
// Token: 0x06002496 RID: 9366 RVA: 0x0007C1A4 File Offset: 0x0007A3A4 protected override void vmethod_2(BinaryReader reader, int version) { this.WayPoints = new Dictionary <Enum57, Dictionary <PointF, Enum99> >(); ushort num = reader.ReadUInt16(); for (int i = 0; i < (int)num; i++) { Enum57 key = (Enum57)reader.ReadUInt16(); Dictionary <PointF, Enum99> dictionary = new Dictionary <PointF, Enum99>(); ushort num2 = reader.ReadUInt16(); for (ushort num3 = 0; num3 < num2; num3 += 1) { PointF key2 = reader.smethod_12(); Enum99 value = (Enum99)reader.ReadUInt16(); if (!dictionary.ContainsKey(key2)) { dictionary.Add(key2, value); } } if (!this.WayPoints.ContainsKey(key)) { this.WayPoints.Add(key, dictionary); } } base.vmethod_2(reader, version); }
// Token: 0x06002804 RID: 10244 RVA: 0x000121B5 File Offset: 0x000103B5 public Class108(Enum57 playground, PointF dockLocation, Size windowClientSize, Class95 <Struct54> pondCapture, Class150 dockReferenceCapture) { this.Playground = playground; this.DockLocation = dockLocation; this.WindowClientSize = windowClientSize; this.PondCapture = pondCapture; this.DockReferenceCapture = dockReferenceCapture; }
// Token: 0x060020CC RID: 8396 RVA: 0x0000D5CA File Offset: 0x0000B7CA public EventArgs30(Enum57 playground) { this.Playground = playground; }
// Token: 0x0600281D RID: 10269 RVA: 0x0009466C File Offset: 0x0009286C public static string smethod_5(this Enum57 playGround) { switch (playGround) { default: return("Unknown"); case Enum57.const_1: return("Estate"); case Enum57.const_2: return("ToonTown Central"); case Enum57.const_3: return("ToonTown Central : Loopy Lane"); case Enum57.const_4: return("ToonTown Central : Punchline Place"); case Enum57.const_5: return("ToonTown Central : Silly Street"); case Enum57.const_6: return("Goofy Speedway"); case Enum57.const_7: return("Chip 'n Dale's Acorn Acres"); case Enum57.const_8: return("Chip 'n Dale's Golf"); case Enum57.const_9: return("Daisy Gardens"); case Enum57.const_10: return("Daisy Gardens : Elm Street"); case Enum57.const_11: return("Daisy Gardens : Maple Street"); case Enum57.const_12: return("Daisy Gardens : Oak Street"); case Enum57.const_13: return("Donald's Dock"); case Enum57.const_14: return("Donald's Dock : Barnacle Boulevard"); case Enum57.const_15: return("Donald's Dock : Lighthouse Lane"); case Enum57.const_16: return("Donald's Dock : Seaweed Street"); case Enum57.const_17: return("Minnie's Melodyland"); case Enum57.const_18: return("Minnie's Melodyland : Alto Avenue"); case Enum57.const_19: return("Minnie's Melodyland : Baritone Boulevard"); case Enum57.const_20: return("Minnie's Melodyland : Tenor Terrace"); case Enum57.const_21: return("The Brrrgh"); case Enum57.const_22: return("The Brrrgh : Polar Place"); case Enum57.const_23: return("The Brrrgh : Sleet Street"); case Enum57.const_24: return("The Brrrgh : Walrus Way"); case Enum57.const_25: return("Donald's Dreamland"); case Enum57.const_26: return("Donald's Dreamland : Lullaby Lane"); case Enum57.const_27: return("Donald's Dreamland : Pajama Place"); case Enum57.const_28: return("Bossbot HQ"); case Enum57.const_29: return("Cashbot HQ"); case Enum57.const_30: return("Sellbot HQ"); case Enum57.const_31: return("Lawbot HQ"); case Enum57.const_32: return("Party Grounds"); } }
// Token: 0x06001A07 RID: 6663 RVA: 0x00009368 File Offset: 0x00007568 public Class200(Enum57 playground) { this.enum57_0 = playground; base.Text = this.enum57_0.smethod_5(); }
// Token: 0x060019F4 RID: 6644 RVA: 0x00049304 File Offset: 0x00047504 private void method_12() { if (!this.class141_0.ProcessOpen) { if (!this.class141_0.smethod_1(this)) { return; } this.method_11(); } Enum57 playground = this.class142_0.Playground; if (playground == Enum57.const_0) { DialogBox.smethod_3("Cannot record the position as ToonTown does not appear to be in a playground.", "Unknown Playground"); return; } WayPointEditor.Class203 @class = new WayPointEditor.Class203(); @class.nullable_0 = null; EventHandler eventHandler = null; WayPointEditor.Class204 class2 = new WayPointEditor.Class204(); class2.class203_0 = @class; class2.wayPointEditor_0 = this; class2.loading_0 = new Loading(); try { Form loading_ = class2.loading_0; if (eventHandler == null) { eventHandler = new EventHandler(class2.method_0); } loading_.Shown += eventHandler; class2.loading_0.ShowDialog(); } finally { if (class2.loading_0 != null) { ((IDisposable)class2.loading_0).Dispose(); } } if (@class.nullable_0 != null) { Dictionary <PointF, Enum99> dictionary; WayPointEditor.Class200 class3; if (this.class101_0.WayPoints.ContainsKey(playground)) { dictionary = this.class101_0.WayPoints[playground]; class3 = this.dictionary_0[playground]; } else { dictionary = new Dictionary <PointF, Enum99>(); this.class101_0.WayPoints.Add(playground, dictionary); this.PlaygroundList.Items.Add(class3 = new WayPointEditor.Class200(playground)); this.dictionary_0.Add(playground, class3); this.PlaygroundList.Sort(); } this.PlaygroundList.SelectedItems.Clear(); if (class3 != null) { class3.Selected = true; } PointF location = @class.nullable_0.Value.Location; WayPointEditor.Class198 class4 = null; if (dictionary.ContainsKey(location)) { WayPointEditor.smethod_0(location); using (IEnumerator enumerator = this.WayPointList.Items.GetEnumerator()) { while (enumerator.MoveNext()) { object obj = enumerator.Current; WayPointEditor.Class198 class5 = (WayPointEditor.Class198)obj; if (class5.Point == location) { class4 = class5; IL_1D4: goto IL_217; } } goto IL_1D4; } } dictionary.Add(location, Enum99.flag_0); this.WayPointList.Items.Add(class4 = new WayPointEditor.Class198(location, Enum99.flag_0)); base.FileModified = true; IL_217: foreach (object obj2 in this.WayPointList.SelectedItems) { WayPointEditor.Class198 class6 = (WayPointEditor.Class198)obj2; class6.Selected = false; } if (class4 != null) { class4.Selected = true; return; } } else { DialogBox.smethod_3("The Way Point Editor was unable to retrieve your toon's coordinates. Check if ToonTown is responding and your toon is in a Playground.", "Unable to Retrieve Coordinates"); } }