Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: yaobifeng on August 19, 2008, 10:29:15 AM
-
The engine has some Async methods,can we define it by ourself?thanks. :)
-
You mean methods that return immediately and run in a separate thread? That currently isn't possible. You can simulate this using events, but of course, events don't have parameters.
// some code 1
on "parallel_task"
{
// some code 2
}
Some code 1 and some code 2 will run in parallel after executing this script.
-
You mean methods that return immediately and run in a separate thread? That currently isn't possible. You can simulate this using events, but of course, events don't have parameters.
// some code 1
on "parallel_task"
{
// some code 2
}
Some code 1 and some code 2 will run in parallel after executing this script.
thanks very much,i think that's enough.i will try it later.