From c07d1c4f10e75bbe399d02becc40a9db72af2ce5 Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Thu, 30 Oct 2025 20:53:40 +0800 Subject: [PATCH] Add PrettyFace --- Convention/[Runtime]/Config.cs | 16 ++++++++++++++++ [Test]/Program.cs | 26 ++------------------------ 2 files changed, 18 insertions(+), 24 deletions(-) diff --git a/Convention/[Runtime]/Config.cs b/Convention/[Runtime]/Config.cs index 7189a84..ac6341c 100644 --- a/Convention/[Runtime]/Config.cs +++ b/Convention/[Runtime]/Config.cs @@ -55,6 +55,22 @@ namespace Convention } public static string DataPath => "Assets/"; + + public static readonly string PrettyFace = @" +⣇⣿⠘⣿⣿⣿⡿⡿⣟⣟⢟⢟⢝⠵⡝⣿⡿⢂⣼⣿⣷⣌⠩⡫⡻⣝⠹⢿⣿⣷ +⡆⣿⣆⠱⣝⡵⣝⢅⠙⣿⢕⢕⢕⢕⢝⣥⢒⠅⣿⣿⣿⡿⣳⣌⠪⡪⣡⢑⢝⣇ +⡆⣿⣿⣦⠹⣳⣳⣕⢅⠈⢗⢕⢕⢕⢕⢕⢈⢆⠟⠋⠉⠁⠉⠉⠁⠈⣸⢐⢕⢽ +⡗⢰⣶⣶⣦⣝⢝⢕⢕⠅⡆⢕⢕⢕⢕⢕⣴⠏⣠⡶⠛⡉⡉⡛⢶⣦⡀⠐⣕⢕ +⡝⡄⢻⢟⣿⣿⣷⣕⣕⣅⣿⣔⣕⣵⣵⣿⣿⢠⣿⢠⣮⡈⣌⠨⠅⠹⣷⡀⢱⢕ +⡝⡵⠟⠈⠀⠀⠀⠀⠉⢿⣿⣿⣿⣿⣿⣿⣿⣼⣿⢈⡋⠴⢿⡟⣡⡇⣿⡇⢀⢕ +⡝⠁⣠⣾⠟⡉⡉⡉⠻⣦⣻⣿⣿⣿⣿⣿⣿⣿⣿⣧⠸⣿⣦⣥⣿⡇⡿⣰⢗⢄ +⠁⢰⣿⡏⣴⣌⠈⣌⠡⠈⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣬⣉⣉⣁⣄⢖⢕⢕⢕ +⡀⢻⣿⡇⢙⠁⠴⢿⡟⣡⡆⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣵⣵⣿ +⡻⣄⣻⣿⣌⠘⢿⣷⣥⣿⠇⣿⣿⣿⣿⣿⣿⠛⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ +⣷⢄⠻⣿⣟⠿⠦⠍⠉⣡⣾⣿⣿⣿⣿⣿⣿⢸⣿⣦⠙⣿⣿⣿⣿⣿⣿⣿⣿⠟ +⡕⡑⣑⣈⣻⢗⢟⢞⢝⣻⣿⣿⣿⣿⣿⣿⣿⠸⣿⠿⠃⣿⣿⣿⣿⣿⣿⡿⠁⣠ +⡝⡵⡈⢟⢕⢕⢕⢕⣵⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣿⣿⣿⣿⣿⠿⠋⣀⣈⠙ +⡝⡵⡕⡀⠑⠳⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⢉⡠⡲⡫⡪⡪⡣".Trim(); } public static partial class Utility diff --git a/[Test]/Program.cs b/[Test]/Program.cs index 5709dd1..e121049 100644 --- a/[Test]/Program.cs +++ b/[Test]/Program.cs @@ -6,34 +6,12 @@ using Convention.RScript.Variable.Attr; using Convention.RScript.Variable.CStyle; using System; using System.IO; +using System.Text; public class Program { - [Description(@" -测试注释1 -测试注释二 -")] - [Default(@" -this.Log(1); -")] - public class Test - { - [Method] - public void Log(object o) - { - Console.WriteLine(o); - } - } - static void Main(string[] args) { - var engine = new RScriptEngine(); - var testClass = new CScriptRScriptVariableGenerater(typeof(Test), () => new Test(), null, nameof(Test)); - testClass.Register(); - engine.Run(@" -var t = New(Test); -t.Log(114514); -"); - Console.WriteLine(testClass.scriptIndicator); + Console.WriteLine(PlatformIndicator.PrettyFace); } } \ No newline at end of file