ds_priority_delete_value

Deletes the given value (along with its priority) from the priority queue.

语法:

ds_priority_delete_value(id,val);


参数 描述
id The id of the priority queue to use.
val The value to delete from the priority queue.


返回: N/A(无返回值)


描述

This function will simply delete the given value, along with its priority, from the indexed priority queue.


例如:

if ai_move = false
   {
   ds_priority_delete_value(ai_priority, scr_AI_Move);
   }

The above code checks an instance variable and if it returns false it will remove the indexed script from the priority queue.


上一页: DS Priority Queues
下一页: ds_priority_find_max
© Copyright YoYo Games Ltd. 2018 All Rights Reserved