From cd99bfe4f32bdef5c01a971699a03fb9fc22e799 Mon Sep 17 00:00:00 2001 From: walon Date: Tue, 27 May 2025 10:18:13 +0800 Subject: [PATCH] =?UTF-8?q?ObufzScope=E6=8B=86=E5=88=86=E4=B8=BA=E7=8B=AC?= =?UTF-8?q?=E7=AB=8B=E4=BB=A3=E7=A0=81=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Runtime/ObfuzIgnoreAttribute.cs | 19 --------------- .../Runtime/ObfuzScope.cs | 24 +++++++++++++++++++ .../Runtime/ObfuzScope.cs.meta | 11 +++++++++ 3 files changed, 35 insertions(+), 19 deletions(-) create mode 100644 com.code-philosophy.obfuz/Runtime/ObfuzScope.cs create mode 100644 com.code-philosophy.obfuz/Runtime/ObfuzScope.cs.meta diff --git a/com.code-philosophy.obfuz/Runtime/ObfuzIgnoreAttribute.cs b/com.code-philosophy.obfuz/Runtime/ObfuzIgnoreAttribute.cs index 9ee448f..99fea04 100644 --- a/com.code-philosophy.obfuz/Runtime/ObfuzIgnoreAttribute.cs +++ b/com.code-philosophy.obfuz/Runtime/ObfuzIgnoreAttribute.cs @@ -6,25 +6,6 @@ using System.Threading.Tasks; namespace Obfuz { - [Flags] - public enum ObfuzScope - { - None = 0x0, - TypeName = 0x1, - Field = 0x2, - MethodName = 0x4, - MethodParameter = 0x8, - MethodBody = 0x10, - Method = MethodName | MethodParameter | MethodBody, - PropertyName = 0x20, - PropertyGetterSetterName = 0x40, - Property = PropertyName | PropertyGetterSetterName, - EventName = 0x100, - EventAddRemoveFireName = 0x200, - Event = EventName | PropertyGetterSetterName, - Module = 0x1000, - All = TypeName | Field | Method | Property | Event, - } [AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = false)] public class ObfuzIgnoreAttribute : Attribute diff --git a/com.code-philosophy.obfuz/Runtime/ObfuzScope.cs b/com.code-philosophy.obfuz/Runtime/ObfuzScope.cs new file mode 100644 index 0000000..e307990 --- /dev/null +++ b/com.code-philosophy.obfuz/Runtime/ObfuzScope.cs @@ -0,0 +1,24 @@ +using System; + +namespace Obfuz +{ + [Flags] + public enum ObfuzScope + { + None = 0x0, + TypeName = 0x1, + Field = 0x2, + MethodName = 0x4, + MethodParameter = 0x8, + MethodBody = 0x10, + Method = MethodName | MethodParameter | MethodBody, + PropertyName = 0x20, + PropertyGetterSetterName = 0x40, + Property = PropertyName | PropertyGetterSetterName, + EventName = 0x100, + EventAddRemoveFireName = 0x200, + Event = EventName | PropertyGetterSetterName, + Module = 0x1000, + All = TypeName | Field | Method | Property | Event, + } +} diff --git a/com.code-philosophy.obfuz/Runtime/ObfuzScope.cs.meta b/com.code-philosophy.obfuz/Runtime/ObfuzScope.cs.meta new file mode 100644 index 0000000..1fec67d --- /dev/null +++ b/com.code-philosophy.obfuz/Runtime/ObfuzScope.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3c7e51fe12f206347b08a4b0be48605d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: