Exemple #1
0
        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());
            }
        }
Exemple #2
0
 public static void API_CommentOutToPacketView(string comment)
 {
     GatePacketManager.SetComment(comment);
 }