Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualsaejox

Posted 07 April 2013 - 04:01 PM

Nice.

 

Question:

 

How do i register functions accepting delegates as parameters.

funcdef void CALLBACK();
class Foo
{
  void Bar() { counter++; }
  void counter = 0;
}

events.Add(CALLBACK(f.Bar));

How does RegisterObjectMethod look?

Does it accept asIScriptFunction*? Do i have to increase refcount myself?


#1saejox

Posted 07 April 2013 - 03:56 PM

Nice.

 

Question:

 

How do i register functions accepting delegates as parameters.

funcdef void CALLBACK();
class Foo
{
  void Bar() { counter++; }
  void counter = 0;
}

events.Add(CALLBACK(f.Bar));

How does RegisterObjectMethod look?


PARTNERS