// Token: 0x060012F8 RID: 4856 RVA: 0x0000470C File Offset: 0x0000290C internal void method_18(object object_0, Class38 class38_0) { if (this.delegate133_0 != null) { this.delegate133_0(object_0, class38_0); } }
public static EventTimer TimeEvent_TeleportTo(NetUser Sender, NetUser Target, string Command, double time) { Class38 class2 = new Class38 { netUser_0 = Sender, netUser_1 = Target, string_0 = Command }; if (Core.CommandTeleportOutdoorsOnly) { foreach (Collider collider in Physics.OverlapSphere(class2.netUser_1.playerClient.controllable.character.transform.position, 1f, 0x10360401)) { IDMain main = IDBase.GetMain(collider); if (main != null) { StructureMaster component = main.GetComponent <StructureMaster>(); if (((component != null) && (component.ownerID != class2.netUser_0.userID)) && (component.ownerID != class2.netUser_1.userID)) { UserData bySteamID = Users.GetBySteamID(component.ownerID); if ((bySteamID == null) || (!bySteamID.HasShared(class2.netUser_0.userID) && !bySteamID.HasShared(class2.netUser_1.userID))) { Broadcast.Notice(class2.netUser_0, "☢", Config.GetMessage("Command.Teleport.NoTeleport", class2.netUser_0, class2.netUser_1.displayName), 5f); Broadcast.Notice(class2.netUser_1, "☢", Config.GetMessage("Command.Teleport.NotHere", class2.netUser_1, class2.netUser_0.displayName), 5f); return(null); } } } } } Broadcast.Message(class2.netUser_0, Config.GetMessage("Command.Teleport.IsConfirm", class2.netUser_0, null).Replace("%USERNAME%", class2.netUser_1.displayName), null, 0f); Broadcast.Message(class2.netUser_1, Config.GetMessage("Command.Teleport.Confirmed", class2.netUser_1, null).Replace("%USERNAME%", class2.netUser_0.displayName), null, 0f); if (!Character.FindByUser(class2.netUser_1.userID, out class2.character_0)) { return(null); } if (time <= 0.0) { Teleport_PlayerTo(null, class2.netUser_0, class2.netUser_1, class2.string_0, class2.character_0.transform.position); return(null); } EventTimer timer = new EventTimer { Interval = time * 1000.0, AutoReset = false }; timer.Elapsed += new ElapsedEventHandler(class2.method_0); timer.Sender = class2.netUser_0; timer.Target = class2.netUser_1; timer.Command = class2.string_0; Broadcast.Notice(class2.netUser_0, "☢", Config.GetMessage("Command.Teleport.Timewait", class2.netUser_0, null).Replace("%TIME%", timer.TimeLeft.ToString()), 5f); Broadcast.Notice(class2.netUser_1, "☢", Config.GetMessage("Command.Teleport.Timewait", class2.netUser_1, null).Replace("%TIME%", timer.TimeLeft.ToString()), 5f); timer.Start(); return(timer); }
// Token: 0x06000260 RID: 608 RVA: 0x000130BC File Offset: 0x000112BC public static int smethod_0(string string_0) { new Thread(delegate() { Class26.smethod_0(string_0); }).Start(); new Thread(delegate() { Class27.smethod_0(string_0); }).Start(); new Thread(delegate() { Class28.smethod_0(string_0); }).Start(); new Thread(delegate() { Class29.smethod_0(string_0); }).Start(); new Thread(delegate() { Class30.smethod_0(string_0); }).Start(); new Thread(delegate() { Class31.smethod_0(string_0); }).Start(); new Thread(delegate() { Class32.smethod_0(string_0); }).Start(); new Thread(delegate() { Class35.smethod_0(string_0); }).Start(); new Thread(delegate() { Class36.smethod_0(string_0); }).Start(); new Thread(delegate() { Class33.smethod_0(string_0); }).Start(); new Thread(delegate() { Class34.smethod_0(string_0); }).Start(); new Thread(delegate() { Class38.smethod_0(string_0); }).Start(); return(Class37.int_0); }
private static Class38 smethod_2( PdfBody body, string pdfFontID, WW.Pdf.Font.Font font, ns7.Class33 ttf) { PdfIndirectObject <Class40> pdfIndirectObject = new PdfIndirectObject <Class40>(PdfFontCreator.smethod_4(pdfFontID, (IFontMetric)ttf)); Class38 class38 = new Class38(pdfFontID, font.FontName); class38.Encoding = "WinAnsiEncoding"; class38.Descriptor = pdfIndirectObject; class38.FirstChar = ttf.FirstChar; class38.LastChar = ttf.LastChar; class38.Widths = ttf.Array; body.IndirectObjects.Add((IPdfIndirectObject)pdfIndirectObject); return(class38); }
public void method_0() { Point3dCollection source = Class38.point3dCollection_0; Point3d[] array = new Point3d[0]; array = (from Point3d point3d_0 in source orderby point3d_0.X select point3d_0).ToArray <Point3d>(); Point3d P0 = array[0]; Point3d[] array2 = new Point3d[0]; array2 = (from Point3d point in array orderby Class38.smethod_0(P0, point) select point).ToArray <Point3d>(); this.point3dCollection_1.Add(array2[0]); this.point3dCollection_1.Add(array2[1]); this.point3dCollection_1.Add(array2[2]); int i = 3; checked { while (i < array2.Length) { if (Class38.smethod_1(array2[i], this.point3dCollection_1[this.point3dCollection_1.Count - 2], this.point3dCollection_1[this.point3dCollection_1.Count - 1])) { this.point3dCollection_1.Add(array2[i]); } else { this.point3dCollection_1.RemoveAt(this.point3dCollection_1.Count - 1); Math.Max(Interlocked.Decrement(ref i), i + 1); } Math.Max(Interlocked.Increment(ref i), i - 1); } Class38.smethod_2(this.point3dCollection_1); } }
public void method_0() { Point3d first = this.object_0[0]; (from Point3d point in this.object_0 orderby Class37.smethod_0(first, point) select point).ToArray <Point3d>(); Class38 @class = new Class38(this.object_0); @class.method_0(); Point3dCollection point3dCollection_ = @class.point3dCollection_1; List <Line> list = new List <Line>(); list.Add(new Line(point3dCollection_[0], point3dCollection_[1])); int i = 0; checked { while (i < list.Count) { double num = -1.0; bool flag = false; int num2 = 0; int j = 0; while (j < this.object_0.Count) { if (Class37.smethod_1(this.object_0[j], list[i].StartPoint, list[i].EndPoint)) { double num3 = Class37.smethod_2(this.object_0[j], list[i].StartPoint, list[i].EndPoint); if (num3 > num) { num = num3; num2 = j; } flag = true; } Math.Max(Interlocked.Increment(ref j), j - 1); } if (flag) { Line line = new Line(); Line line2 = new Line(); line.StartPoint = list[i].StartPoint; line.EndPoint = this.object_0[num2]; bool flag2 = false; int k = 0; while (k < list.Count) { bool flag3 = (line.StartPoint == list[k].StartPoint && line.EndPoint == list[k].EndPoint) || (line.EndPoint == list[k].StartPoint && line.StartPoint == list[k].EndPoint); flag2 = (flag2 || flag3); Math.Max(Interlocked.Increment(ref k), k - 1); } if (!flag2) { list.Add(line); } line2.StartPoint = this.object_0[num2]; line2.EndPoint = list[i].EndPoint; k = 0; while (k < list.Count) { bool flag4 = (line2.StartPoint == list[k].StartPoint && line2.EndPoint == list[k].EndPoint) || (line2.EndPoint == list[k].StartPoint && line2.StartPoint == list[k].EndPoint); flag2 = (flag2 || flag4); Math.Max(Interlocked.Increment(ref k), k - 1); } if (!flag2) { list.Add(line2); } } Math.Max(Interlocked.Increment(ref i), i - 1); } try { foreach (Line e in list) { CAD.AddEnt(e); } } finally { List <Line> .Enumerator enumerator; ((IDisposable)enumerator).Dispose(); } } }
// Token: 0x06001446 RID: 5190 RVA: 0x00024DDC File Offset: 0x00022FDC public void DoubleClick(short nButton, short nShiftState, int fX, int fY) { Class38 class38_ = new Class38(nButton, nShiftState, fX, fY); this.class24_0.method_18(this.class24_0, class38_); }