room_next


描述

With this function you can retrieve the index of the room after the room input into the function. For example you can use the read only variable room to get the index of the current room and then use this function to find the room that follows it in the resource tree. If there is no room after the one you input then -1 is returned.


语法:

room_next;


Returns:

索引


例如:

if room_next(room) != -1
   {
   room_goto_next());
   }

The above code will check to see if the next room exists and if so, it will go to it.


上一页: General Room Functions And Variables
下一页: room_previous
© Copyright YoYo Games Ltd. 2018 All Rights Reserved