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

Attribute allows other classes to access protected methods. More...

Public Member Functions

void Friend (TypeName friendClass)
 

Public Attributes

TypeName m_FriendClass
 

Detailed Description

Attribute allows other classes to access protected methods.

Can be added on specific method or whole class.

[Friend(ClassB)]
class ClassA
{
static protected void MethodA()
{
}
[Friend(ClassC)]
static protected void MethodB()
{
}
}
class ClassB
{
static void Do()
{
ClassA.MethodA();
ClassA.MethodB();
}
}
class ClassC
{
static void Do()
{
ClassA.MethodB();
}
}
Attribute allows other classes to access protected methods.
Definition EnScript.c:66
void Friend(TypeName friendClass)
Definition EnScript.c:68

Constructor & Destructor Documentation

◆ Friend()

void Friend.Friend ( TypeName friendClass)

Member Data Documentation

◆ m_FriendClass

TypeName Friend.m_FriendClass

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