你可以为操作员创建一个任务序列:
. K& V4 U R( R, B( H! x% U7 dtreenode dispatcher = centerobject(current,1); / N6 {5 P. c3 J" J' B0 s
treenode ts = createemptytasksequence(dispatcher,0,0);
) b3 B6 `' `: L& v: N9 u! U1 E, X U. ]# U9 I. D
inserttask(ts,TASKTYPE_TRAVEL,current,NULL);! u- Y, w. g% Z; E" Z
for (int i = 1; i <= content(current); i++)
' k5 p" b8 t5 d% K1 D& X5 ^' ?{
* V8 r7 L8 g, o2 w/ X# g inserttask(ts,TASKTYPE_FRLOAD,item,current,port);
2 {4 e& I, f! |. Y( U& I8 @} |