s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Attributes
CodeGeneratorAttribute
chevron_left
Attributes
attribute
CodeGeneratorAttribute
search
Constructors
functions
CodeGeneratorAttribute
Properties
data_object
CallbackName
data_object
Priority
data_object
Type
CodeGeneratorAttribute
An attribute that can be added to a custom System.Attribute class for special code generation behavior. They'll then be applied to methods and properties when they are decorated with <i>that</i> attribute.
attribute
Sandbox
.
Sandbox.System
build
Constructors
1
CodeGeneratorAttribute
(
type
,
callbackName
,
priority
)
Perform code generation for a method or property.
data_object
Properties
3
CallbackName
string
The name of the callback method. This can be a fully qualified static method callback or a simple callback to invoke on the target object if the method or property target is not static.
Priority
int
Attributes with a higher priority will wrap the target first. The default priority is 0.
Type
CodeGeneratorFlags
The type of code generation you want to do. You will need to specify whether it should apply to instance or static methods and properties using the Sandbox.CodeGeneratorFlags.Instance and Sandbox.CodeGeneratorFlags.Static flags.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.