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 1/2] 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 From b1631a1fb70e78b630e5841aa63c379c949d401c Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Wed, 26 Nov 2025 19:26:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8F=90=E5=8D=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Convention-CSharp.csproj | 2 +- Convention/[RScript] | 2 +- [Test]/Program.cs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Convention-CSharp.csproj b/Convention-CSharp.csproj index 2542c05..d2d4fff 100644 --- a/Convention-CSharp.csproj +++ b/Convention-CSharp.csproj @@ -3,7 +3,7 @@ 9.0 Exe - net8.0 + net10.0 Convention true diff --git a/Convention/[RScript] b/Convention/[RScript] index 29dd4f5..88b0edf 160000 --- a/Convention/[RScript] +++ b/Convention/[RScript] @@ -1 +1 @@ -Subproject commit 29dd4f5d96898b1cbca59c6f0d178591ebb8baa9 +Subproject commit 88b0edfe6a9327d4545800e7c2321e181208863a diff --git a/[Test]/Program.cs b/[Test]/Program.cs index e121049..136e114 100644 --- a/[Test]/Program.cs +++ b/[Test]/Program.cs @@ -12,6 +12,7 @@ public class Program { static void Main(string[] args) { + Console.OutputEncoding = Encoding.UTF8; Console.WriteLine(PlatformIndicator.PrettyFace); } } \ No newline at end of file