// Token: 0x060019F9 RID: 6649 RVA: 0x0004983C File Offset: 0x00047A3C private void WayPointTypeComboBox_SelectedIndexChanged(object sender, EventArgs e) { if (this.WayPointTypeComboBox.SelectedIndex > -1) { WayPointEditor.Class198 @class = this.WayPointList.SelectedItems[0] as WayPointEditor.Class198; WayPointEditor.Class200 class2 = this.PlaygroundList.SelectedItems[0] as WayPointEditor.Class200; Enum99 @enum = (Enum99)this.WayPointTypeComboBox.SelectedItem; if (@class.WayPointType != @enum) { Dictionary <PointF, Enum99> dictionary = this.class101_0.WayPoints[class2.enum57_0]; if (@enum == Enum99.flag_1) { foreach (object obj in this.WayPointList.Items) { WayPointEditor.Class198 class3 = (WayPointEditor.Class198)obj; if (class3.WayPointType == Enum99.flag_1) { class3.WayPointType = Enum99.flag_0; dictionary[class3.Point] = Enum99.flag_0; } } } @class.WayPointType = @enum; dictionary[@class.Point] = @enum; } base.FileModified = true; } }
// Token: 0x060019F0 RID: 6640 RVA: 0x00049108 File Offset: 0x00047308 private void ChangeCoordinates_Click(object sender, EventArgs e) { EventHandler <EventArgs43 <PointF> > eventHandler = null; WayPointEditor.Class201 @class = new WayPointEditor.Class201(); @class.wayPointEditor_0 = this; @class.class198_0 = (this.WayPointList.SelectedItems[0] as WayPointEditor.Class198); @class.enum57_0 = (Enum57)this.Playgrounds.SelectedItem; using (PointFInput pointFInput = new PointFInput()) { PointFInput pointFInput2 = pointFInput; if (eventHandler == null) { eventHandler = new EventHandler <EventArgs43 <PointF> >(@class.method_0); } pointFInput2.ValueValidating += eventHandler; pointFInput.SelectedPoint = @class.class198_0.Point; if (pointFInput.ShowDialog() == DialogResult.OK && @class.class198_0.Point != pointFInput.SelectedPoint) { Enum99 value = this.class101_0.WayPoints[@class.enum57_0][@class.class198_0.Point]; this.class101_0.WayPoints[@class.enum57_0].Remove(@class.class198_0.Point); this.class101_0.WayPoints[@class.enum57_0].Add(pointFInput.SelectedPoint, value); @class.class198_0.Point = pointFInput.SelectedPoint; base.FileModified = true; } } }
// 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: 0x0600251E RID: 9502 RVA: 0x0007EF2C File Offset: 0x0007D12C protected override void vmethod_2(BinaryReader reader, int version) { this.Flowers = new Dictionary <Enum99, Class93>(); this.Trees = new Dictionary <Enum99, Class109>(); this.HouseColor = (Enum13)reader.ReadByte(); this.State = (Enum131)reader.ReadByte(); base.GardeningActions = (Enum36)reader.ReadByte(); int num = reader.ReadInt32(); for (int i = 0; i < num; i++) { Enum99 key = (Enum99)reader.ReadUInt16(); Class93 value = new Class93(reader); if (!this.Flowers.ContainsKey(key)) { this.Flowers.Add(key, value); } } num = reader.ReadInt32(); for (int j = 0; j < num; j++) { Enum99 key2 = (Enum99)reader.ReadUInt16(); Class109 value2 = new Class109(reader); if (!this.Trees.ContainsKey(key2)) { this.Trees.Add(key2, value2); } } if (version > 1) { this.WaterCount = reader.ReadUInt16(); } else { this.WaterCount = 3; } base.vmethod_2(reader, version); }
// Token: 0x0600281C RID: 10268 RVA: 0x000944E0 File Offset: 0x000926E0 public static string smethod_4(this Enum99 wayPointType) { if (wayPointType <= Enum99.flag_9) { if (wayPointType <= Enum99.flag_16) { if (wayPointType <= Enum99.flag_5) { switch (wayPointType) { case Enum99.flag_0: return("Dummy Point"); case Enum99.flag_1: return("Fisherman"); default: if (wayPointType == Enum99.flag_5) { return("Flower 1"); } break; } } else { if (wayPointType == Enum99.flag_15) { return("Tree 1"); } if (wayPointType == Enum99.flag_6) { return("Flower 2"); } if (wayPointType == Enum99.flag_16) { return("Tree 2"); } } } else if (wayPointType <= Enum99.flag_17) { if (wayPointType == Enum99.flag_7) { return("Flower 3"); } if (wayPointType == Enum99.flag_17) { return("Tree 3"); } } else { if (wayPointType == Enum99.flag_8) { return("Flower 4"); } if (wayPointType == Enum99.flag_18) { return("Tree 4"); } if (wayPointType == Enum99.flag_9) { return("Flower 5"); } } } else if (wayPointType <= Enum99.flag_21) { if (wayPointType <= Enum99.flag_10) { if (wayPointType == Enum99.flag_19) { return("Tree 5"); } if (wayPointType == Enum99.flag_10) { return("Flower 6"); } } else { if (wayPointType == Enum99.flag_20) { return("Tree 6"); } if (wayPointType == Enum99.flag_11) { return("Flower 7"); } if (wayPointType == Enum99.flag_21) { return("Tree 7"); } } } else if (wayPointType <= Enum99.flag_22) { if (wayPointType == Enum99.flag_12) { return("Flower 8"); } if (wayPointType == Enum99.flag_22) { return("Tree 8"); } } else { if (wayPointType == Enum99.flag_13) { return("Flower 9"); } if (wayPointType == Enum99.flag_14) { return("Flower 10"); } if (wayPointType == Enum99.flag_23) { return("Wheelbarrow"); } } throw new NotSupportedException(string.Format("Cannot format way point type: '{0}'.", wayPointType)); }
// Token: 0x06001A06 RID: 6662 RVA: 0x00009348 File Offset: 0x00007548 public Class199(Enum99 type) { this.WayPointType = type; base.Text = this.enum99_0.smethod_4(); }
// Token: 0x06001A03 RID: 6659 RVA: 0x000092E9 File Offset: 0x000074E9 public Class198(PointF point, Enum99 type) { this.Point = point; base.Text = point.ToString(); base.SubItems.Add(new WayPointEditor.Class198.Class199(type)); }