From 5c88091760cab7349a36c342f683cc8dc66fc2ca Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Tue, 29 Dec 2020 12:41:54 -0800 Subject: [PATCH] Added AlwaysIncludeFlags --- BeefLibs/corlib/src/Attribute.bf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/BeefLibs/corlib/src/Attribute.bf b/BeefLibs/corlib/src/Attribute.bf index ffa71bcb..5f5d5495 100644 --- a/BeefLibs/corlib/src/Attribute.bf +++ b/BeefLibs/corlib/src/Attribute.bf @@ -66,6 +66,15 @@ namespace System AlwaysIncludeTarget = 8 } + public enum AlwaysIncludeFlags + { + None, + Type = 1, + IncludeAllMethods = 2, + AssumeInstantiated = 4, + All = Type | IncludeAllMethods | AssumeInstantiated + } + public sealed struct AttributeUsageAttribute : Attribute { AttributeTargets mAttributeTarget = .All; @@ -102,6 +111,11 @@ namespace System get { return mReflectUser; } set mut { mReflectUser = value; } } + + public AlwaysIncludeFlags AlwaysIncludeUser + { + set {} + } } [AttributeUsage(.All)]