mwext / Decorator
Decorator Namespace
Decorator
Table of contents
Functions
autoExecute(fnName ): (target? : unknown ) => void other |
---|
Class Decorator - Automatically execute a method |
noReply(): (target : ModuleS <any , any >, fnName : string , descriptor : PropertyDescriptor ) => void other |
Method Annotation - Annotated net methods do not require a reply to the client |
persistence(name? ): (target : Subdata , propertyKey : string ) => void other |
Attribute Annotation - Persistent Storage of Attributes |
Functions
autoExecute
• autoExecute(fnName
): (target?
: unknown
) => void
other
Class Decorator - Automatically execute a method
Precautions
Call occurs before the life cycle of all game script
Parameters
fnName string | Method name to be automatically executed: range: Method name |
---|
Returns
fn | void |
---|
noReply
• noReply(): (target
: ModuleS
<any
, any
>, fnName
: string
, descriptor
: PropertyDescriptor
) => void
other
Method Annotation - Annotated net methods do not require a reply to the client
Returns
fn | void |
---|
persistence
• persistence(name?
): (target
: Subdata
, propertyKey
: string
) => void
other
Attribute Annotation - Persistent Storage of Attributes
Precautions
It is used to set which property of the data class (the class inheriting Subdata) are to be stored permanently
Parameters
name? string | The persistent property name will be stored in the variable name if it is not written. Default: undefined range: no restrictions, just reasonable |
---|
Returns
fn | void |
---|