private dynamic instance_atom(Type type = null, dynamic attributes = null, int x = 0, double y = 0, int z = 0) { dynamic instance = null; Tile T = null; Stopwatch w = new Stopwatch(); GlobalVars._preloader.setup(attributes, type); T = Map13.GetTile(x, ((int)(y)), z); w.Start(); if (T != null) { instance = Lang13.Call(type, T); } if (Lang13.Bool(GlobalVars.use_preloader) && Lang13.Bool(instance)) { GlobalVars._preloader.load(instance); } w.Stop(); ServiceDev.NotifyMapEntInit(type, w.Elapsed); return(instance); }
public static void Error(string info, Exception e) { while (e.InnerException != null) { e = e.InnerException; } string s = new String('=', Console.WindowWidth) + "\n" + info; s += "\n" + new String('-', Console.WindowWidth); s += "\n" + e.Message; s += "\n" + new String('-', Console.WindowWidth); s += "\n" + e.StackTrace; s += "\n" + new String('=', Console.WindowWidth); ServiceDev.NotifyIssue(true, e.Message + "\n" + e.StackTrace, info); internal_print(s, ConsoleColor.Red, false); }
public static void Warning(string title, string misc) { ServiceDev.NotifyIssue(false, title, misc); internal_print(title + " " + misc, ConsoleColor.DarkYellow); }