Enfusion Script API
Loading...
Searching...
No Matches
Restrict Interface Reference

Limit access to method only to script modules within some access level. More...

Public Member Functions

void Restrict (EAccessLevel level, bool isError=true)
 

Detailed Description

Limit access to method only to script modules within some access level.

If user tries to call this method from script module with improper access level, compilation error is thrown.

[Restrict(EAccessLevel.LEVEL_1, false)] // just throws warning
void DangerousMethod1();
[Restrict(EAccessLevel.LEVEL_1)] // throw an error and break compilation
void DangerousMethod2();
EAccessLevel
Definition EnScript.c:31
void Restrict(EAccessLevel level, bool isError=true)
Definition EnScript.c:60

Constructor & Destructor Documentation

◆ Restrict()

void Restrict.Restrict ( EAccessLevel level,
bool isError = true )

The documentation for this interface was generated from the following file: