Jump to content

Timer Manager for delayed functions in source code


Recommended Posts

  • Active Member

I just found this old code in my computer and i decided to share it since i've never used it anyway but it could be useful to someone for new systems. It allows to delay a function call in time instead of calling it instantly.

This is how you use it:

TimerManager::Instance().Schedule([/* your function's parameters here */]() {
	/* your function here */
	}, /* your delay in milliseconds here */);

 

Since it's old code i won't offer any support on it, also make sure to test it thoroughly if you want to use it in a live server.

Here is the download link:

This is the hidden content, please


This is the hidden content, please

 

 

Edited by Gurgarath
  • Metin2 Dev 31
  • Good 1
  • Love 1
  • Love 7
Link to comment
Share on other sites

  • Forum Moderator

Hello!

Thank you for your release, there is another release that can also achieve the same thing, with differences in architecture and the way it works, but if anyone is not aware of this, I would rather point this out:

 

  • Good 1
  • Love 1

Gurgarath
coming soon

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.