DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Equals()

proto bool Equals ( notnull ScriptCaller other)

Compares this script caller against another script caller.

Заметки
May return true even if either one is invalid
class SomeClass
{
void SomeMethod()
{
}
}
void Test()
{
SomeClass instanceA = new SomeClass();
SomeClass instanceB = new SomeClass();
ScriptCaller callerA;
ScriptCaller callerB;
Two methods that are to the same instance
callerA = ScriptCaller.Create(instanceA.SomeMethod);
callerB = ScriptCaller.Create(instanceA.SomeMethod);
Print(callerA.Equals(callerB));
Print(callerA == callerB);
Print(callerA);
Print(callerB);
Two methods belonging to different instances
callerA = ScriptCaller.Create(instanceA.SomeMethod);
callerB = ScriptCaller.Create(instanceB.SomeMethod);
Print(callerA.Equals(callerB));
Print(callerA == callerB);
Print(callerA);
Print(callerB);
}
enum EScriptInvokerInsertFlags ScriptCaller()
Designed to hold 1 valid call.
Attribute used for tests annotation and assignment to Suites.
Определения TestingFramework.c:97
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки ScriptCaller().