public void API_Print(object obj, PrintTargetType target = PrintTargetType.All, [CallerLineNumber] int line_no = -1) { if (target.HasFlag(PrintTargetType.PacketLog)) { GatePacketManager.SetComment(obj.ToString()); } if (target.HasFlag(PrintTargetType.EditorConsole)) { runner.AddScriptMessage(obj.ToString()); } if (target.HasFlag(PrintTargetType.EditorComment)) { runner.SetScriptComment(line_no - 1, ScriptMessageType.Notice, obj.ToString()); } }
public static void API_CommentOutToPacketView(string comment) { GatePacketManager.SetComment(comment); }